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
fc5dac0ef9
commit
ff5946f35a
3 changed files with 0 additions and 42 deletions
|
@ -109,15 +109,6 @@ else
|
|||
cp "../sources/www/index_no_sftp.html" "$install_dir/www/index.html"
|
||||
fi
|
||||
|
||||
#if [ $with_mysql -eq 1 ]; then
|
||||
# # Store the database access
|
||||
# echo -e "# MySQL Database
|
||||
#name: ${db_name}\nuser: ${db_name}\npass: ${db_pwd}" > ../sources/db_access.txt
|
||||
#
|
||||
# # Copy files to the right place
|
||||
# cp -r "../sources/db_access.txt" "$install_dir/db_access.txt"
|
||||
#fi
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
# Home directory of the user needs to be owned by root to allow
|
||||
# SFTP connections
|
||||
|
|
|
@ -18,19 +18,6 @@ with_mysql=$(ynh_app_setting_get --app=$app --key=with_mysql)
|
|||
with_sftp=$(ynh_app_setting_get --app=$app --key=with_sftp)
|
||||
password=$(ynh_app_setting_get --app=$app --key=password)
|
||||
|
||||
#=================================================
|
||||
# STANDARD RESTORATION STEPS
|
||||
#=================================================
|
||||
# REINSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
|
||||
#if [ $phpversion != "none" ]
|
||||
#then
|
||||
# ynh_script_progression --message="Reinstalling dependencies..." --weight=2
|
||||
|
||||
# ynh_install_app_dependencies "php${phpversion}-fpm"
|
||||
#fi
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
@ -44,8 +31,6 @@ 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"
|
||||
|
||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
db_user=$db_name
|
||||
db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd)
|
||||
|
|
|
@ -73,24 +73,6 @@ ynh_app_setting_set --app=$app --key=password --value="$password"
|
|||
|
||||
ynh_maintenance_mode_ON
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
|
||||
#if [ $phpversion != "none" ]
|
||||
#then
|
||||
# ynh_script_progression --message="Installing dependencies..." --weight=2
|
||||
|
||||
# ynh_install_app_dependencies "php${phpversion}-fpm"
|
||||
#fi
|
||||
|
||||
#if [ $with_mysql -eq 1 ]
|
||||
#then
|
||||
# ynh_install_app_dependencies "php${phpversion}-mysql"
|
||||
#fi
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue