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.
|
||||
`__INSTALL_DIR__/db_access.txt`
|
||||
If you have requested a MYSQL database, please find information about this SQL database:
|
||||
|
||||
Database user: __DB_USER__
|
||||
Database name: __DB_NAME__
|
||||
|
|
|
@ -24,12 +24,12 @@ password=$(ynh_app_setting_get --app=$app --key=password)
|
|||
# REINSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
|
||||
if [ $phpversion != "none" ]
|
||||
then
|
||||
ynh_script_progression --message="Reinstalling dependencies..." --weight=2
|
||||
#if [ $phpversion != "none" ]
|
||||
#then
|
||||
# ynh_script_progression --message="Reinstalling dependencies..." --weight=2
|
||||
|
||||
ynh_install_app_dependencies "php${phpversion}-fpm"
|
||||
fi
|
||||
# ynh_install_app_dependencies "php${phpversion}-fpm"
|
||||
#fi
|
||||
|
||||
#=================================================
|
||||
# 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
|
||||
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_user=$db_name
|
||||
|
|
|
@ -70,7 +70,6 @@ ynh_app_setting_set --app=$app --key=password --value="$password"
|
|||
#=================================================
|
||||
# ACTIVATE MAINTENANCE MODE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Activating maintenance mode..."
|
||||
|
||||
ynh_maintenance_mode_ON
|
||||
|
||||
|
@ -80,17 +79,17 @@ ynh_maintenance_mode_ON
|
|||
# INSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
|
||||
if [ $phpversion != "none" ]
|
||||
then
|
||||
ynh_script_progression --message="Installing dependencies..." --weight=2
|
||||
#if [ $phpversion != "none" ]
|
||||
#then
|
||||
# ynh_script_progression --message="Installing dependencies..." --weight=2
|
||||
|
||||
ynh_install_app_dependencies "php${phpversion}-fpm"
|
||||
fi
|
||||
# ynh_install_app_dependencies "php${phpversion}-fpm"
|
||||
#fi
|
||||
|
||||
if [ $with_mysql -eq 1 ]
|
||||
then
|
||||
ynh_install_app_dependencies "php${phpversion}-mysql"
|
||||
fi
|
||||
#if [ $with_mysql -eq 1 ]
|
||||
#then
|
||||
# ynh_install_app_dependencies "php${phpversion}-mysql"
|
||||
#fi
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
@ -163,7 +162,6 @@ chmod 750 "$install_dir"
|
|||
#=================================================
|
||||
# DEACTIVE MAINTENANCE MODE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Disabling maintenance mode..."
|
||||
|
||||
ynh_maintenance_mode_OFF
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue