2024-11-18 12:07:35 +01:00
|
|
|
cat <<EOF
|
2024-03-30 21:33:59 +01:00
|
|
|
____ ______________ __
|
|
|
|
/ __ \/ _/ ___/ ___// / docker edition
|
|
|
|
/ / / // / \__ \\__ \/ / launching bootstrapper...
|
|
|
|
/ /_/ // / ___/ /__/ /_/ running as $(whoami)
|
|
|
|
/_____/___//____/____(_)
|
|
|
|
|
|
|
|
EOF
|
|
|
|
if [ -z "$(find data -mindepth 1 -maxdepth 1)" ]; then
|
|
|
|
echo '[bootstrapper] data directory is empty, copying template.'
|
|
|
|
cp -r data.template/* data/
|
2024-11-18 12:07:35 +01:00
|
|
|
chown -R jabe:jabe data/
|
2024-03-30 21:33:59 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
# echo "[bootstrapper] checking permissions for data folder"
|
|
|
|
# permissions=$(ls -ld data)
|
|
|
|
# ldArr=(${permissions// / })
|
|
|
|
|
|
|
|
#if [[ ${ldArr[3]} != "node" ]]; then
|
|
|
|
# echo "[bootstrapper] data folder is owned by user ${ldArr[3]}, which is not node."
|
|
|
|
# echo "[bootstrapper] correcting permissions..."
|
|
|
|
# chown -R 1000:1000 data/
|
|
|
|
#fi
|
|
|
|
echo "[bootstrapper] launching runner"
|
2024-06-03 10:19:11 +02:00
|
|
|
su root -c 'npm run docker:prod:_runner'
|