Initial notea packaging

This commit is contained in:
Joe
2021-05-05 10:59:36 -05:00
parent ff1c8d3e49
commit 1b4ddb7f13
4 changed files with 65 additions and 0 deletions
Executable
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
set -eu
echo " => Changing ownership"
chown -R cloudron:cloudron /app/data
if [ ! -f /app/data/env.sh ] ; then
echo " => Use terminal to customize config in /app/data/env.sh"
cp /app/code/example.env.sh /app/data/env.sh
fi
echo " => Sourcing config"
source /app/data/env.sh
echo " => Starting notea"
exec /usr/local/bin/gosu cloudron:cloudron /app/code/node_modules/.bin/next start