mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-26 05:10:49 +02:00
Download sources during installation
This commit is contained in:
@ -21,10 +21,16 @@ ynh_app_setting_set "$app" is_public "$is_public"
|
||||
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
||||
|| ynh_die "Path not available: ${domain}${path}"
|
||||
|
||||
# Download sources
|
||||
sudo wget -q https://github.com/Blount/LBCAlerte/archive/3.3.zip -O LBCAlerte.zip
|
||||
|
||||
# Uncompress
|
||||
sudo unzip -qq LBCAlerte.zip -d ..
|
||||
|
||||
# Copy source files
|
||||
src_path=/var/www/$app
|
||||
sudo mkdir -p $src_path/var
|
||||
sudo cp -a ../sources/. $src_path
|
||||
sudo cp -a ../LBCAlerte*/. $src_path
|
||||
|
||||
# Set permissions to app files
|
||||
sudo chown -R www-data: $src_path
|
||||
|
Reference in New Issue
Block a user