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
Ilja
neutrinet_ynh
Commits
67e76732
Commit
67e76732
authored
Dec 14, 2019
by
HgO
Browse files
Fix empty webpath
parent
e4582913
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/upgrade
View file @
67e76732
...
...
@@ -16,6 +16,7 @@ source _common.sh
app
=
$YNH_APP_INSTANCE_NAME
domain
=
$(
ynh_app_setting_get
$app
domain
)
path
=
$(
ynh_app_setting_get
$app
path
)
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
)
...
...
@@ -53,13 +54,12 @@ if [[ -z $app_user ]]; then
fi
if
[[
-z
$path_url
]]
;
then
path_url
=
$
(
ynh_app_setting_get
$app
path
)
path_url
=
$path
if
[[
-z
$path_url
]]
;
then
ynh_die
"Missing path url!"
else
ynh_app_setting_set
$app
path_url
$path_url
ynh_app_setting_delete
$app
path
fi
fi
...
...
@@ -69,6 +69,13 @@ if [[ $path_url == */ ]]; then
ynh_app_setting_set
$app
path_url
$path_url
fi
# path setting is needed by Yunohost
# when path is empty, Yunohost thinks the app is on the domain root
if
[[
"
$path
"
!=
"
$path_url
"
]]
;
then
path
=
$path_url
ynh_app_setting_set
$app
path
$path
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
...
...
Write
Preview
Supports
Markdown
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