mirror of
https://github.com/YunoHost-Apps/opensondage_ynh.git
synced 2024-09-03 19:46:28 +02:00
cleaning
This commit is contained in:
parent
271fd6d4f2
commit
1723a24f91
4 changed files with 7 additions and 11 deletions
|
@ -23,7 +23,7 @@ ynh_change_url_nginx_config
|
|||
#=================================================
|
||||
# UPDATE OPENSONDAGE CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Reconfiguring OpenSondage..."
|
||||
ynh_script_progression --message="Reconfiguring $app..."
|
||||
|
||||
ynh_replace_string --match_string="const APP_URL = '$old_domain';" --replace_string="const APP_URL = '$new_domain';" --target_file="$install_dir/app/inc/config.php"
|
||||
|
||||
|
|
|
@ -16,12 +16,6 @@ source /usr/share/yunohost/helpers
|
|||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
timezone="$(cat /etc/timezone)"
|
||||
|
||||
#=================================================
|
||||
# STORE SETTINGS FROM MANIFEST
|
||||
#=================================================
|
||||
ynh_script_progression --message="Storing installation settings..." --weight=2
|
||||
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -39,7 +33,7 @@ chown -R $app:www-data "$install_dir"
|
|||
ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
|
||||
|
||||
# Create a dedicated PHP-FPM config
|
||||
ynh_add_fpm_config --usage=low --footprint=low
|
||||
ynh_add_fpm_config
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
@ -51,7 +45,7 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=2
|
||||
|
||||
ynh_add_config --template="../conf/config.php" --destination="$install_dir/app/inc/config.php"
|
||||
ynh_add_config --template="config.php" --destination="$install_dir/app/inc/config.php"
|
||||
|
||||
chmod 400 "$install_dir/app/inc/config.php"
|
||||
chown $app:$app "$install_dir/app/inc/config.php"
|
||||
|
|
|
@ -12,6 +12,7 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
timezone="$(cat /etc/timezone)"
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE APP MAIN DIR
|
||||
#=================================================
|
||||
|
|
|
@ -12,6 +12,7 @@ source /usr/share/yunohost/helpers
|
|||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
timezone="$(cat /etc/timezone)"
|
||||
|
||||
|
@ -42,7 +43,7 @@ chown -R $app:www-data "$install_dir"
|
|||
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=3
|
||||
|
||||
# Create a dedicated PHP-FPM config
|
||||
ynh_add_fpm_config --usage=low --footprint=low
|
||||
ynh_add_fpm_config
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
@ -57,7 +58,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|||
then
|
||||
ynh_script_progression --message="Updating a configuration file..." --weight=2
|
||||
|
||||
ynh_add_config --template="../conf/config.php" --destination="$install_dir/app/inc/config.php"
|
||||
ynh_add_config --template="config.php" --destination="$install_dir/app/inc/config.php"
|
||||
chmod 400 "$install_dir/app/inc/config.php"
|
||||
chown $app:$app "$install_dir/app/inc/config.php"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue