Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ilja
neutrinet_ynh
Commits
cd3bc0b9
Commit
cd3bc0b9
authored
Apr 11, 2020
by
HgO
Browse files
remove folders before reloading nginx
parent
403d2c27
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/remove
View file @
cd3bc0b9
...
...
@@ -20,7 +20,7 @@ path_url=$(ynh_app_setting_get $app path_url)
app_user
=
$(
ynh_app_setting_get
$app
app_user
)
www_path
=
$(
ynh_app_setting_get
$app
www_path
)
opt_path
=
$(
ynh_app_setting_get
$app
opt_path
)
nginx_path
=
/etc/nginx/conf.d/
$domain
.d/
$app
.conf
nginx_path
=
"
/etc/nginx/conf.d/
$domain
.d/
$app
.conf
"
#=================================================
# STANDARD REMOVE
...
...
@@ -28,16 +28,18 @@ nginx_path=/etc/nginx/conf.d/$domain.d/$app.conf
ynh_script_progression
"Removing static site..."
rm
-rf
$www_path
rm
-rf
"
$www_path
"
rm
-f
"
$nginx_path
"
nginx
-tq
ynh_systemd_action nginx reload
ynh_script_progression
"Removing automatic vpn certificate renewal..."
rm
-rf
$opt_path
rm
-rf
/etc/cron.daily/
$app
-renew-cert
rm
-rf
"
$opt_path
"
rm
-rf
"/etc/cron.daily/
$app
-renew-cert"
ynh_script_progression
"Reloading Nginx..."
nginx
-tq
ynh_systemd_action nginx reload
#=================================================
# REMOVE DEPENDENCIES
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment