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:
parent
f44761e740
commit
46eb5ac3c9
1 changed files with 2 additions and 12 deletions
|
@ -92,10 +92,8 @@ ynh_script_progression --message="Configuring Archivist..." --weight=2
|
|||
|
||||
config_file="$final_path/Backup_list.conf"
|
||||
|
||||
if [ $encrypt -eq 1 ]
|
||||
if [ $encrypt ]
|
||||
then
|
||||
encrypt=true
|
||||
|
||||
passkey="$final_path/passkey"
|
||||
echo "$encryption_pwd" > "$passkey"
|
||||
chmod 400 "$passkey"
|
||||
|
@ -104,14 +102,6 @@ else
|
|||
passkey=na
|
||||
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"
|
||||
|
||||
if [ $apps_backup -eq 1 ]
|
||||
|
@ -161,7 +151,7 @@ ynh_store_file_checksum --file="/etc/cron.d/$app"
|
|||
# chown -R $app: $final_path
|
||||
## Debug
|
||||
ynh_exec_warn ls -l $final_path
|
||||
ynh_system_user_exists --username=$app
|
||||
# ynh_system_user_exists --username=$app
|
||||
chmod 777 $final_path
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue