mirror of
https://github.com/YunoHost-Apps/outline_ynh.git
synced 2024-09-03 19:56:12 +02:00
Updates
This commit is contained in:
parent
13ae0bd195
commit
347d34af40
4 changed files with 8 additions and 4 deletions
|
@ -60,9 +60,13 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
pushd "$mc_path"
|
pushd "$mc_path"
|
||||||
ynh_exec_warn_less sudo -u minio ./mc mirror --remove --a minio/outlinestorage "$final_path/outlinestorage"
|
ynh_exec_warn_less sudo -u minio mkdir outlinestorage
|
||||||
|
ynh_exec_warn_less sudo -u minio ./mc mirror --remove --a minio/outlinestorage ./outlinestorage/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
mv "$mc_path/outlinestorage" "$final_path/outlinestorage"
|
||||||
|
chown -R outline:www-data "$final_path/outlinestorage"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE APP MAIN DIR
|
# BACKUP THE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -127,7 +127,6 @@ ynh_script_progression --message="Configuring system user..." --time --weight=1
|
||||||
|
|
||||||
# Create a system user
|
# Create a system user
|
||||||
ynh_system_user_create --username=$app --home_dir="$final_path"
|
ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
yunohost user update $admin --add-mailalias $app@$domain
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE A POSTGRESQL DATABASE
|
# CREATE A POSTGRESQL DATABASE
|
||||||
|
|
|
@ -85,10 +85,12 @@ chown -R $app:www-data "$final_path"
|
||||||
# RESTORE MINIO
|
# RESTORE MINIO
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
mv "$final_path/outlinestorage" "$mc_path/outlinestorage"
|
||||||
|
chown -R minio:www-data "$mc_path/outlinestorage"
|
||||||
pushd "$mc_path"
|
pushd "$mc_path"
|
||||||
ynh_exec_warn_less sudo -u minio ./mc mb minio/outlinestorage --region "fr-ynh-1"
|
ynh_exec_warn_less sudo -u minio ./mc mb minio/outlinestorage --region "fr-ynh-1"
|
||||||
ynh_exec_warn_less sudo -u minio ./mc policy set public minio/outlinestorage
|
ynh_exec_warn_less sudo -u minio ./mc policy set public minio/outlinestorage
|
||||||
ynh_exec_warn_less sudo -u minio ./mc cp --recursive "$final_path/outlinestorage" minio/outlinestorage
|
ynh_exec_warn_less sudo -u minio ./mc cp --recursive ./outlinestorage minio/outlinestorage
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -69,7 +69,6 @@ ynh_script_progression --message="Making sure dedicated system user exists..." -
|
||||||
|
|
||||||
# Create a dedicated user (if not existing)
|
# Create a dedicated user (if not existing)
|
||||||
ynh_system_user_create --username=$app --home_dir="$final_path"
|
ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
yunohost user update $admin --add-mailalias $app@$domain
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
|
Loading…
Reference in a new issue