mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2025-12-17 22:56:20 +00:00
24 lines
419 B
Bash
Executable file
24 lines
419 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Export all variables
|
|
set -a
|
|
|
|
# Abort if an error is encountered
|
|
set -e
|
|
|
|
# SSH config
|
|
if [ -f ~/.ssh/id_ed25519 ]
|
|
then
|
|
chmod 0600 ~/.ssh/id_ed25519
|
|
fi
|
|
|
|
# Run all scripts in init folder
|
|
for file in /app/init.d/*.sh
|
|
do
|
|
/usr/bin/bash -c ${file} >>/app/logs/$(echo ${file} | sed 's|/app/init.d/||;s|\.sh$||').log
|
|
done
|
|
|
|
# Read cli parameters
|
|
exec "${@}" &
|
|
|
|
# Monitor log
|
|
tail -f /app/logs/*.log
|