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

Update backup

This commit is contained in:
Limezy 2021-11-13 14:11:16 +07:00
parent d1692ba494
commit 4d90b07b04

View file

@ -21,15 +21,6 @@ ynh_clean_setup () {
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# CHECK IF MINIO IS INSTALLED, IF NOT WARN USER
#=================================================
ynh_script_progression --message="Checking if MinIO is installed..." --time --weight=1
if ! yunohost app list | grep -q "id: minio"; then
echo "MinIO is not installed. Installing... "
fi
#=================================================
# LOAD SETTINGS
#=================================================
@ -70,7 +61,7 @@ ynh_print_info --message="Declaring files to be backed up..."
pushd "$mc_path"
ynh_exec_warn_less sudo -u minio mkdir outlinestorage
ynh_exec_warn_less sudo -u minio ./mc mirror --remove --a minio/outlinestorage ./outlinestorage/
ynh_exec_warn_less sudo -u minio ./mc mirror --a minio/outlinestorage ./outlinestorage/
popd
mv "$mc_path/outlinestorage" "$final_path/outlinestorage"