Skip to content
Snippets Groups Projects
Unverified Commit 1e3a409d authored by Griefed's avatar Griefed Committed by GitHub
Browse files

Rebase to lsiobase/alpine

parent 8d832009
No related branches found
No related tags found
No related merge requests found
{
"url": "https://github.com/vegeta897/d-zone",
"infoCommand": "!d-zone",
"autoPopulate": true,
"servers": [
]
}
{
"textbox": {
"maxWidth": 96,
"linesPerPage": 4,
"scrollSpeeds": [
[0, 3],
[75, 2],
[150, 1]
],
"pageDelay": 5,
"finalDelay": 30,
"openTime": 10,
"closeTime": 8,
"bgColor": "rgba(0, 0, 0, 0.7)"
}
}
{
"address": "127.0.0.1",
"port": 3000,
"secure": false
}
#!/usr/bin/with-contenv bash
# Check if configs are provided by host, if not, use defaults
if [ ! -f "/config/discord-config.json" ]; then
cp /defaults/discord-config.json /config/discord-config.json
fi
if [ ! -f "/config/misc-config.json" ]; then
cp /defaults/misc-config.json /config/misc-config.json
fi
if [ ! -f "/config/socket-config.json" ]; then
cp /defaults/socket-config.json /config/socket-config.json
fi
# Overwrite config files in d-zone directory
ln -sf /config/discord-config.json /app/d-zone/discord-config.json
ln -sf /config/misc-config.json /app/d-zone/misc-config.json
ln -sf /config/socket-config.json /app/d-zone/socket-config.json
# permissions stuff
chown -R abc:abc \
/config
# chwon the app directory, but not node_modules
find /app/d-zone -maxdepth 1 ! -name node_modules ! -name d-zone -exec chown -R abc:abc '{}' \;
#!/usr/bin/with-contenv bash
cd /app/d-zone || exit
exec \
s6-setuidgid abc /usr/bin/npm start
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment