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
48cbb0ad
Commit
48cbb0ad
authored
May 03, 2020
by
Aleks
Browse files
Handle upgrade / migration of old www_path to final_path
parent
b5623670
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/upgrade
View file @
48cbb0ad
...
...
@@ -37,7 +37,12 @@ nginx_path=/etc/nginx/conf.d/$domain.d/$app.conf
#=================================================
if
[[
-z
$final_path
]]
;
then
final_path
=
/var/www/
$app
if
[[
-n
"
$(
ynh_app_setting_get
$app
www_path
)
"
]]
final_path
=
$(
ynh_app_setting_get
$app
www_path
)
ynh_app_setting_delete
$app
www_path
else
final_path
=
/var/www/
$app
fi
ynh_app_setting_set
$app
final_path
$final_path
mkdir
-p
$final_path
...
...
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