1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
# Allow script to run as user root.
diff -Naur otrs-5.0.1.orig/scripts/DBUpdate-to-5.pl otrs-5.0.1/scripts/DBUpdate-to-5.pl
--- otrs-5.0.1.orig/scripts/DBUpdate-to-5.pl 2015-10-19 20:54:33.000000000 +0200
+++ otrs-5.0.1/scripts/DBUpdate-to-5.pl 2015-10-22 09:52:15.611138228 +0200
@@ -63,13 +63,13 @@
}
# UID check
- if ( $> == 0 ) { # $EFFECTIVE_USER_ID
- die "
-Cannot run this program as root.
-Please run it as the 'otrs' user or with the help of su:
- su -c \"$0\" -s /bin/bash otrs
-";
- }
+# if ( $> == 0 ) { # $EFFECTIVE_USER_ID
+# die "
+#Cannot run this program as root.
+#Please run it as the 'otrs' user or with the help of su:
+# su -c \"$0\" -s /bin/bash otrs
+#";
+# }
# enable auto-flushing of STDOUT
$| = 1; ## no critic
|