1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

SKIP if bool eq 0

This commit is contained in:
kay0u 2019-08-18 19:54:06 +02:00
parent ef937d372b
commit d7a0032438
No known key found for this signature in database
GPG key ID: F6FFF40F2B3C57A0

View file

@ -57,35 +57,35 @@ ynh_script_progression --message="Backuping of Gitlab..." --weight=9
to_skip="" to_skip=""
if [ $backup_db -eq 1 ]; then if [ $backup_db -eq 0 ]; then
to_skip="db,"$to_skip to_skip="db,"$to_skip
fi fi
if [ $backup_uploads -eq 1 ]; then if [ $backup_uploads -eq 0 ]; then
to_skip="uploads,"$to_skip to_skip="uploads,"$to_skip
fi fi
if [ $backup_repositories -eq 1 ]; then if [ $backup_repositories -eq 0 ]; then
to_skip="repositories,"$to_skip to_skip="repositories,"$to_skip
fi fi
if [ $backup_builds -eq 1 ]; then if [ $backup_builds -eq 0 ]; then
to_skip="builds,"$to_skip to_skip="builds,"$to_skip
fi fi
if [ $backup_artifacts -eq 1 ]; then if [ $backup_artifacts -eq 0 ]; then
to_skip="artifacts,"$to_skip to_skip="artifacts,"$to_skip
fi fi
if [ $backup_lfs -eq 1 ]; then if [ $backup_lfs -eq 0 ]; then
to_skip="lfs,"$to_skip to_skip="lfs,"$to_skip
fi fi
if [ $backup_registry -eq 1 ]; then if [ $backup_registry -eq 0 ]; then
to_skip="registry,"$to_skip to_skip="registry,"$to_skip
fi fi
if [ $backup_pages -eq 1 ]; then if [ $backup_pages -eq 0 ]; then
to_skip="pages,"$to_skip to_skip="pages,"$to_skip
fi fi