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:
@ -19,10 +19,16 @@ language=$(ynh_app_setting_get "$app" language)
|
||||
# Remove trailing "/" for next commands
|
||||
path=${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
|
||||
sudo cp -a ../sources/. $src_path
|
||||
sudo cp -a ../LBCAlerte*/. $src_path
|
||||
|
||||
# Set permissions to app files
|
||||
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
||||
|
Reference in New Issue
Block a user