Commit d71ec70d authored by HQ's avatar HQ
Browse files

Various improvements

parent 58933fe5
......@@ -14,7 +14,7 @@ GITTARGET=/var/discourse
PREEXEC=/tmp/files/preexec.sh
DEBS=postgresql-10 libgdbm-dev libncurses5-dev automake libtool bison libffi-dev gawk g++ libssl-dev make zlib1g-dev libyaml-dev libsqlite3-dev sqlite3 libgmp-dev pkg-config libgmp-dev libreadline6-dev libpq-dev redis-server ruby-rmagick imagemagick optipng jhead jpegoptim gifsicle postfix software-properties-common ruby-sidekiq-cron ruby ruby-dev brotli libapache2-mod-passenger
POSTEXEC=/tmp/files/postexec.sh
SERVICE=/usr/local/bin/stabile-discourse.pl
SERVICE=
TERMINALLINK=/stabile/pipe/http://{uuid}:4200
PRICE=-420
VCPU=2
......
......@@ -6,3 +6,25 @@ echo "Performing pre-install operations"
# Disable data image - this stack does not really need a data image
perl -pi -e 's/(\/dev\/vdb1.+)/#$1/;' /etc/fstab
# Utility script for setting up discourse to work with this stack
cp /tmp/files/stabile-discourse.pl /usr/local/bin
chmod 755 $1/usr/local/bin/stabile-discourse.pl
bash -c 'echo "[Unit]
DefaultDependencies=no
Description=Utility script for Stabile discourse
Wants=network-online.target redis-server.service stabile-ubuntu.service webmin.service
After=stabile-networking.service remote-fs.target nss-lookup.target apache2.service redis-server.service stabile-ubuntu.service webmin.service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/stabile-discourse.pl
TimeoutSec=600
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target" > /etc/systemd/system/stabile-discourse.service'
chmod 664 /etc/systemd/system/stabile-discourse.service
systemctl enable stabile-discourse.service
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment