1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

fix upgrade

This commit is contained in:
yalh76 2021-04-14 20:41:14 +02:00
parent eba8fda191
commit 27839d42c9
2 changed files with 4 additions and 2 deletions

View file

@ -126,7 +126,7 @@ mv $final_path/$app/bin/* $final_path/.cargo/bin/
chmod +x $final_path/.cargo/bin/*
# Remove empty bin directory
ynh_secure_remove --file="$final_path/$app/bin/"
ynh_secure_remove --file="$final_path/$app/bin"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"

View file

@ -22,6 +22,8 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
admin=$(ynh_app_setting_get --app=$app --key=admin)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd)
port=$(ynh_app_setting_get --app=$app --key=port)
architecture=$(ynh_detect_arch)
@ -113,7 +115,7 @@ then
chmod +x $final_path/.cargo/bin/*
# Remove empty bin directory
ynh_secure_remove --file="$final_path/$app/bin/"
ynh_secure_remove --file="$final_path/$app/bin"
fi
chmod 750 "$final_path"