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:
parent
d1692ba494
commit
4d90b07b04
1 changed files with 1 additions and 10 deletions
|
@ -21,15 +21,6 @@ ynh_clean_setup () {
|
||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
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
|
# LOAD SETTINGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -70,7 +61,7 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
|
|
||||||
pushd "$mc_path"
|
pushd "$mc_path"
|
||||||
ynh_exec_warn_less sudo -u minio mkdir outlinestorage
|
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
|
popd
|
||||||
|
|
||||||
mv "$mc_path/outlinestorage" "$final_path/outlinestorage"
|
mv "$mc_path/outlinestorage" "$final_path/outlinestorage"
|
||||||
|
|
Loading…
Reference in a new issue