1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

clean options backup data

This commit is contained in:
Robles Rodolphe 2023-09-16 09:36:55 +02:00 committed by GitHub
parent 800941d411
commit cbd076a824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ fi
ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5 ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5
# keep a data directory backup # keep a data directory backup
cp -R $install_dir/data /tmp/data cp -a $install_dir/data /tmp/data
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
@ -88,7 +88,7 @@ ynh_add_config --template="config.local.php" --destination="$install_dir/config.
ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php" ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php"
# Sync the data directory backup # Sync the data directory backup
rsync /tmp/data/ $install_dir/data/ rsync -R /tmp/data/ $install_dir/data/
# Permissions on files and directories # Permissions on files and directories
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"