1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/UMS_ynh.git synced 2024-10-01 13:35:01 +02:00

fix folder settings

This commit is contained in:
Krakinou 2022-03-16 00:19:55 +01:00
parent faef0be898
commit 2c20d71aa9

View file

@ -56,10 +56,11 @@ then
usermod -m -d /home/yunohost.app/$app $app usermod -m -d /home/yunohost.app/$app $app
fi fi
#10.17.0, 10.17.1 & 10.16.0 had a bug that overwrite the media path at installation. #10.17.0, 10.17.1 & 10.16.0 had a bug that overwrite the media path at startup of the service.
#https://github.com/UniversalMediaServer/UniversalMediaServer/issues/2864 #https://github.com/UniversalMediaServer/UniversalMediaServer/issues/2864
#This will reinitialize it to /home/yunohost.multimedia/share #This will reinitialize it to /home/yunohost.multimedia/share
if [ $(ynh_app_upstream_version --manifest="/etc/yunohost/apps/$app/manifest.json") <= "10.17.0" ] current_version=$(ynh_app_upstream_version --manifest="/etc/yunohost/apps/$app/manifest.json")
if [ $current_version == "10.17.0" ] || [ $current_version == "10.16.0" ]
then then
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
ynh_replace_string --match_string="folders =/opt/yunohost/$app,/home/yunohost.app/$app" \ ynh_replace_string --match_string="folders =/opt/yunohost/$app,/home/yunohost.app/$app" \