excute multiple

This commit is contained in:
qiaofeng1227 2023-09-15 16:02:24 +08:00
parent 91f0d2f6bb
commit 38350ececd
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,10 @@
#!/bin/bash
if [ -e "/credential" ]; then
echo "File /credential exists. Exiting script."
exit 1
fi
# Create admin credential by admin cli
su -c '
gitea admin user create --admin --username websoft9 --random-password --email help@websoft9.com > /tmp/credential

View File

@ -3,8 +3,5 @@
s6-svwait -u /etc/s6/gitea
pushd /root >/dev/null
exec 2>&1
exec /usr/local/bin/init.sh
echo "init.sh has been executed" > /var/run/init.sh.executed
wait
popd