diff --git a/setUserId.sh b/setUserId.sh new file mode 100755 index 0000000..43bfec0 --- /dev/null +++ b/setUserId.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# get user id +uid=$(id -u) + +# replace uid and gid in config file +sed -i "/^GITBUCKET_USER_ID/c\\\GITBUCKET_USER_ID=${uid}" gitbucket.conf