1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00

Update upgrade

This commit is contained in:
Krakinou 2018-11-24 11:27:04 +01:00 committed by GitHub
parent a6dfa1ca8c
commit dab9857fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,29 @@
#!/bin/bash #!/bin/bash
# Write all logs to file
#exec > >(tee /tmp/emailpoubelle.log)
#exec 2>&1
app=emailpoubelle
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
final_path=/var/www/emailpoubelle app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
path_url=$(ynh_app_setting_get $app path)
admin=$(ynh_app_setting_get $app admin)
final_path=$(ynh_app_setting_get $app final_path)
db_name=$(ynh_app_setting_get $app db_name)
final_path=/var/www/$app
cronline="0 */2 * * * www-data cd $final_path/www/; /usr/bin/php index.php > /dev/null 2>&1"
# Copy source files # Copy source files
test -e "$final_path" || ynh_die "This path already contains a folder"
sudo mkdir -p $final_path sudo mkdir -p $final_path
sudo cp -R ../src/bin/ $final_path/bin sudo cp -R ../src/bin/ $final_path/bin
sudo cp -R ../src/lib/ $final_path/lib sudo cp -R ../src/lib/ $final_path/lib