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:
parent
b68ecff200
commit
4128715522
3 changed files with 5 additions and 5 deletions
|
@ -25,7 +25,7 @@ ynh_backup --src_path="$install_dir"
|
||||||
# BACKUP THE APP DATA DIR
|
# BACKUP THE APP DATA DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup --src_path="$data_path" --is_big
|
ynh_backup --src_path="$data_dir" --is_big
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
|
|
|
@ -43,8 +43,8 @@ fi
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R root:$app $install_dir
|
chown -R root:$app $install_dir
|
||||||
chmod -R g=u,g-w,o-rwx $install_dir
|
chmod -R g=u,g-w,o-rwx $install_dir
|
||||||
chown -R root:$app $data_path
|
chown -R root:$app $data_dir
|
||||||
chmod -R g=u,g-w,o-rwx $data_path
|
chmod -R g=u,g-w,o-rwx $data_dir
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
|
|
|
@ -24,9 +24,9 @@ chown -R "$app:www-data" "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restoring the app data directory..." --weight=30
|
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
|
add_languagetool_config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue