# 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
