mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
cleaning
This commit is contained in:
parent
6314f2bc26
commit
67c99b38e7
3 changed files with 16 additions and 20 deletions
|
@ -1,5 +1,4 @@
|
||||||
If you have requested a MYSQL database, please find information about this SQL database here.
|
If you have requested a MYSQL database, please find information about this SQL database:
|
||||||
`__INSTALL_DIR__/db_access.txt`
|
|
||||||
|
|
||||||
Database user: __DB_USER__
|
Database user: __DB_USER__
|
||||||
Database name: __DB_NAME__
|
Database name: __DB_NAME__
|
||||||
|
|
|
@ -24,12 +24,12 @@ password=$(ynh_app_setting_get --app=$app --key=password)
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ $phpversion != "none" ]
|
#if [ $phpversion != "none" ]
|
||||||
then
|
#then
|
||||||
ynh_script_progression --message="Reinstalling dependencies..." --weight=2
|
# ynh_script_progression --message="Reinstalling dependencies..." --weight=2
|
||||||
|
|
||||||
ynh_install_app_dependencies "php${phpversion}-fpm"
|
# ynh_install_app_dependencies "php${phpversion}-fpm"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE NGINX CONFIGURATION
|
# RESTORE THE NGINX CONFIGURATION
|
||||||
|
@ -44,8 +44,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
if [ $with_mysql -eq 1 ]; then
|
if [ $with_mysql -eq 1 ]; then
|
||||||
ynh_script_progression --message="Restoring the MySQL database..."
|
ynh_script_progression --message="Restoring the MySQL database..."
|
||||||
|
|
||||||
ynh_install_app_dependencies "php${phpversion}-mysql"
|
#ynh_install_app_dependencies "php${phpversion}-mysql"
|
||||||
|
|
||||||
|
|
||||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||||
db_user=$db_name
|
db_user=$db_name
|
||||||
|
|
|
@ -70,7 +70,6 @@ ynh_app_setting_set --app=$app --key=password --value="$password"
|
||||||
#=================================================
|
#=================================================
|
||||||
# ACTIVATE MAINTENANCE MODE
|
# ACTIVATE MAINTENANCE MODE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Activating maintenance mode..."
|
|
||||||
|
|
||||||
ynh_maintenance_mode_ON
|
ynh_maintenance_mode_ON
|
||||||
|
|
||||||
|
@ -80,17 +79,17 @@ ynh_maintenance_mode_ON
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ $phpversion != "none" ]
|
#if [ $phpversion != "none" ]
|
||||||
then
|
#then
|
||||||
ynh_script_progression --message="Installing dependencies..." --weight=2
|
# ynh_script_progression --message="Installing dependencies..." --weight=2
|
||||||
|
|
||||||
ynh_install_app_dependencies "php${phpversion}-fpm"
|
# ynh_install_app_dependencies "php${phpversion}-fpm"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
if [ $with_mysql -eq 1 ]
|
#if [ $with_mysql -eq 1 ]
|
||||||
then
|
#then
|
||||||
ynh_install_app_dependencies "php${phpversion}-mysql"
|
# ynh_install_app_dependencies "php${phpversion}-mysql"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -163,7 +162,6 @@ chmod 750 "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
# DEACTIVE MAINTENANCE MODE
|
# DEACTIVE MAINTENANCE MODE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Disabling maintenance mode..."
|
|
||||||
|
|
||||||
ynh_maintenance_mode_OFF
|
ynh_maintenance_mode_OFF
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue