mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
Fix
This commit is contained in:
parent
c7e12a8ef7
commit
a2969d34a2
3 changed files with 10 additions and 2 deletions
|
@ -110,6 +110,7 @@ ynh_script_progression --message="Configuring PHP-FPM..."
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config
|
ynh_add_fpm_config
|
||||||
|
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
|
|
|
@ -56,6 +56,7 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE NGINX CONFIGURATION
|
# RESTORE THE NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
|
@ -74,6 +75,10 @@ ynh_script_progression --message="Restoring Baïkal main directory..."
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$final_path"
|
ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE MYSQL DATABASE
|
# RESTORE THE MYSQL DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -88,7 +93,6 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
chown -R root: "$final_path"
|
|
||||||
chown $app "$final_path/config/baikal.yaml"
|
chown $app "$final_path/config/baikal.yaml"
|
||||||
chmod 640 "$final_path/config/baikal.yaml"
|
chmod 640 "$final_path/config/baikal.yaml"
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,10 @@ then
|
||||||
#ynh_secure_remove --file="$temp_folder"
|
#ynh_secure_remove --file="$temp_folder"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -184,7 +188,6 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
chown -R root: "$final_path"
|
|
||||||
chown $app "$final_path/config/baikal.yaml"
|
chown $app "$final_path/config/baikal.yaml"
|
||||||
chmod 640 "$final_path/config/baikal.yaml"
|
chmod 640 "$final_path/config/baikal.yaml"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue