Remote unused files in bin/

This commit is contained in:
Anna Sidwell 2018-11-24 13:31:38 +00:00
parent 0e886181e2
commit 501fcabfb6
3 changed files with 0 additions and 75 deletions

View File

@ -1,27 +0,0 @@
#!/bin/bash
# Create Discourse
docker run -d --restart=always \
-e LANG=en_US.UTF-8 \
-e RAILS_ENV=production \
-e UNICORN_WORKERS=4 \
-e UNICORN_SIDEKIQS=1 \
-e RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 \
-e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 \
-e RUBY_GC_HEAP_INIT_SLOTS=400000 \
-e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 \
-e DISCOURSE_DB_SOCKET=/var/run/postgresql \
-e LETSENCRYPT_DIR=/shared/letsencrypt \
-e DISCOURSE_HOSTNAME=forum.ojuso.org \
-e DISCOURSE_DEVELOPER_EMAILS=admin@ojuso.org \
-e DISCOURSE_SMTP_ADDRESS=mail.gandi.net \
-e DISCOURSE_SMTP_PORT=587 \
-e DISCOURSE_SMTP_USER_NAME=admin@ojuso.org \
-e DISCOURSE_SMTP_PASSWORD=QN7yosrnch1le474H56mesVR1SRw6sfO3izJDZnJ6T62Cj9I57CplW6UYZY6VXsq7lLr868bIK3kSXGyWiSrAyWK \
-e LETSENCRYPT_ACCOUNT_EMAIL=admin@ojuso.org -h energy-app \
-e DOCKER_HOST_IP=172.17.0.1 \
--name app \
-p 80:80 -p 443:443 \
-v /var/discourse/shared/standalone:/shared \
-v /var/discourse/shared/standalone/log/var-log:/var/log \
--mac-address 02:2d:a6:d4:85:4a \
local_discourse/app /sbin/boot

View File

@ -1,12 +0,0 @@
#!/bin/bash
# Spit out environment variables from ./environment and
# compiles them into a bash script that will export them
THISDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
ENV_FILE=$THISDIR/../environment
TARGET=$THISDIR/../environment.sh
echo "#!/bin/bash" > $TARGET
sudo cat $ENV_FILE\
| sed -e '/^#/d;/^$/d;s/ /\\ /g;s/</\\</g;s/>/\\>/g'\
| sed -e 's/^/export /g' >> $TARGET
chmod +x $TARGET

View File

@ -1,36 +0,0 @@
#!/bin/bash
#
# Generates a fancy environment varibale file based a template by
# mixing in production secrets from locally set variables.
#
# Olivia Mackintosh <livvy@base.nu>
THISDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
TEMPLATE=${THISDIR}/../environment.template
TARGET=${THISDIR}/../environment
if [ -z "$DATABASE_PASSWORD" ]; then
echo "Error: Please set \$DATABASE_PASSWORD"
exit 1
fi
if [ -z "$SMTP_PASSWORD" ]; then
echo "Error: Please set \$SMTP_PASSWORD"
exit 1
fi
if [ -z "$SECRET_KEY" ]; then
echo "Error: Please set \$SECRET_KEY"
exit 1
fi
if [ -z "$WEBLATE_ADMIN_PASSWORD" ]; then
echo "Error: Please set \$WEBLATE_ADMIN_PASSWORD"
exit 1
fi
# Make sure only root can access and then
# sub in the environment variables.
sudo chown root:root $TARGET
sudo chmod 660 $TARGET
envsubst < $TEMPLATE | sudo tee $TARGET