1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/archivist_ynh.git synced 2024-09-03 18:15:55 +02:00

fix outdated test + debug

This commit is contained in:
lapineige 2023-12-31 13:30:33 +01:00 committed by GitHub
parent f44761e740
commit 46eb5ac3c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,10 +92,8 @@ ynh_script_progression --message="Configuring Archivist..." --weight=2
config_file="$final_path/Backup_list.conf" config_file="$final_path/Backup_list.conf"
if [ $encrypt -eq 1 ] if [ $encrypt ]
then then
encrypt=true
passkey="$final_path/passkey" passkey="$final_path/passkey"
echo "$encryption_pwd" > "$passkey" echo "$encryption_pwd" > "$passkey"
chmod 400 "$passkey" chmod 400 "$passkey"
@ -104,14 +102,6 @@ else
passkey=na passkey=na
fi fi
if [ $core_backup -eq 1 ]
then
core_backup=true
else
core_backup=false
fi
ynh_add_config --template="Backup_list.conf.default" --destination="$config_file" ynh_add_config --template="Backup_list.conf.default" --destination="$config_file"
if [ $apps_backup -eq 1 ] if [ $apps_backup -eq 1 ]
@ -161,7 +151,7 @@ ynh_store_file_checksum --file="/etc/cron.d/$app"
# chown -R $app: $final_path # chown -R $app: $final_path
## Debug ## Debug
ynh_exec_warn ls -l $final_path ynh_exec_warn ls -l $final_path
ynh_system_user_exists --username=$app # ynh_system_user_exists --username=$app
chmod 777 $final_path chmod 777 $final_path
#================================================= #=================================================