mirror of
https://github.com/YunoHost-Apps/matterbridge_ynh.git
synced 2024-09-03 19:36:24 +02:00
Update restore
This commit is contained in:
parent
3087562f90
commit
9fe636214a
1 changed files with 6 additions and 6 deletions
|
@ -17,16 +17,16 @@ domain=$(ynh_app_setting_get "$app" domain)
|
||||||
path_url=$(ynh_app_setting_get "$app" path_url)
|
path_url=$(ynh_app_setting_get "$app" path_url)
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl "${domain}${path_url}" -a "$app" \
|
yunohost app checkurl "${domain}${path_url}" -a "$app" \
|
||||||
|| ynh_die "Path not available: ${domain}${path_url}"
|
|| ynh_die "Path not available: ${domain}${path_url}"
|
||||||
|
|
||||||
# Restore sources & data
|
# Restore sources & data
|
||||||
src_path="/var/www/${app}"
|
src_path="/opt/${app}"
|
||||||
sudo cp -a ./sources "$src_path"
|
cp -a ./sources "$src_path"
|
||||||
|
|
||||||
# Restore permissions to app files
|
# Restore permissions to app files
|
||||||
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
||||||
sudo chown -R root: "$src_path"
|
chown -R root: "$src_path"
|
||||||
|
|
||||||
### MySQL (remove if not used) ###
|
### MySQL (remove if not used) ###
|
||||||
# If a MySQL database is used:
|
# If a MySQL database is used:
|
||||||
|
@ -39,7 +39,7 @@ sudo chown -R root: "$src_path"
|
||||||
### MySQL end ###
|
### MySQL end ###
|
||||||
|
|
||||||
# Restore NGINX configuration
|
# Restore NGINX configuration
|
||||||
sudo cp -a ./nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
cp -a ./nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
||||||
|
|
||||||
### PHP (remove if not used) ###
|
### PHP (remove if not used) ###
|
||||||
# If a dedicated php-fpm process is used:
|
# If a dedicated php-fpm process is used:
|
||||||
|
@ -49,4 +49,4 @@ sudo cp -a ./nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
||||||
### PHP end ###
|
### PHP end ###
|
||||||
|
|
||||||
# Restart webserver
|
# Restart webserver
|
||||||
sudo service nginx reload
|
service nginx reload
|
||||||
|
|
Loading…
Add table
Reference in a new issue