1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00
This commit is contained in:
Éric Gaspar 2023-04-12 22:39:56 +02:00
parent fc5dac0ef9
commit ff5946f35a
3 changed files with 0 additions and 42 deletions

View file

@ -109,15 +109,6 @@ else
cp "../sources/www/index_no_sftp.html" "$install_dir/www/index.html" cp "../sources/www/index_no_sftp.html" "$install_dir/www/index.html"
fi 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" chown -R $app:www-data "$install_dir"
# Home directory of the user needs to be owned by root to allow # Home directory of the user needs to be owned by root to allow
# SFTP connections # SFTP connections

View file

@ -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) with_sftp=$(ynh_app_setting_get --app=$app --key=with_sftp)
password=$(ynh_app_setting_get --app=$app --key=password) 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 # 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 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"
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
db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd)

View file

@ -73,24 +73,6 @@ ynh_app_setting_set --app=$app --key=password --value="$password"
ynh_maintenance_mode_ON 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 # NGINX CONFIGURATION
#================================================= #=================================================