commit fd7732725767113905c92da5df7ae90e3331fb10
Author: Elan Ruusamäe <[email protected]>
Date: Fri May 27 10:02:13 2016 +0300
inform that db is auto-backuped
gitlab-ctl.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/gitlab-ctl.sh b/gitlab-ctl.sh
index 3307770..f79ed29 100755
--- a/gitlab-ctl.sh
+++ b/gitlab-ctl.sh
@@ -11,6 +11,10 @@ die() {
exit 1
}
+notice() {
+ echo "gitlab $*"
+}
+
# Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)
upgrade() {
gitlab-rake db:migrate "$@"
@@ -30,10 +34,12 @@ restart() {
#
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/8.8.1+ce.0/config/templates/package-scripts/preinst.erb#L10
preinst() {
if [ -f $auto_migrations_skip_file ]; then
- echo >&2 "Found $auto_migrations_skip_file, skipping auto
backup..."
+ notice "preinstall: Found $auto_migrations_skip_file, skipping
auto backup..."
return
fi
+ notice "preinstall: Automatically backing up only the GitLab SQL
database (excluding everything else!)"
+
if ! backup SKIP=repositories,uploads,builds,artifacts,lfs,registry;
then
cat >&2 <<-EOF
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/fd7732725767113905c92da5df7ae90e3331fb10
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit