mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
excute multiple
This commit is contained in:
parent
91f0d2f6bb
commit
38350ececd
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user