1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/languagetool_ynh.git synced 2024-09-03 19:35:58 +02:00

fix data_path

This commit is contained in:
Salamandar 2024-01-27 18:21:27 +01:00
parent b68ecff200
commit 4128715522
3 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@ ynh_backup --src_path="$install_dir"
# BACKUP THE APP DATA DIR
#=================================================
ynh_backup --src_path="$data_path" --is_big
ynh_backup --src_path="$data_dir" --is_big
#=================================================
# SYSTEM CONFIGURATION

View file

@ -43,8 +43,8 @@ fi
# Set permissions to app files
chown -R root:$app $install_dir
chmod -R g=u,g-w,o-rwx $install_dir
chown -R root:$app $data_path
chmod -R g=u,g-w,o-rwx $data_path
chown -R root:$app $data_dir
chmod -R g=u,g-w,o-rwx $data_dir
#=================================================
# SYSTEM CONFIGURATION

View file

@ -24,9 +24,9 @@ chown -R "$app:www-data" "$install_dir"
#=================================================
ynh_script_progression --message="Restoring the app data directory..." --weight=30
ynh_restore_file --origin_path="$data_path" --not_mandatory
ynh_restore_file --origin_path="$data_dir" --not_mandatory
if [ ! -d "$data_path" ]; then
if [ ! -d "$data_dir" ]; then
add_languagetool_config
fi