Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neutrinet
neutrinet_ynh
Commits
e84949fc
Commit
e84949fc
authored
Apr 11, 2020
by
HgO
Browse files
Merge branch '17-remove-folders-before-reloading-nginx' into 'unstable'
Remove folders before reloading nginx See merge request
!28
parents
403d2c27
cd3bc0b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/remove
View file @
e84949fc
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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