Commit 896836f2 authored by Dmytro Bogatov's avatar Dmytro Bogatov 💕
Browse files

Update.

parent 1e85dbab
Pipeline #558 failed with stage
in 12 seconds
......@@ -264,6 +264,7 @@ build-debian-package () {
cp status-ctl.sh build/status-ctl/
cp ../src/appsettings.production.yml build/status-ctl/
cp ../docker-compose.yml build/status-ctl/
cp ../.env.example build/status-ctl/.env
cp -r Makefile debian/ build/status-ctl
echo "Building debian package..."
......
install:
install -D -m 0755 status-ctl.sh $$(pwd)/debian/status-ctl/usr/bin/status-ctl
install -D appsettings.production.yml $$(pwd)/debian/status-ctl/etc/status-site/appsettings.yml
install -D docker-compose.yml $$(pwd)/debian/status-ctl/etc/status-site/docker-compose.yml
cp --no-preserve=ownership appsettings.production.yml $$(pwd)/debian/status-ctl/etc/status-site/appsettings.yml
cp --no-preserve=ownership docker-compose.yml $$(pwd)/debian/status-ctl/etc/status-site/docker-compose.yml
cp --no-preserve=ownership .env $$(pwd)/debian/status-ctl/etc/status-site/.env
status-ctl (0.0.4) unstable; urgency=medium
* Prototype.
-- Dmytro Bogatov <dmytro@dbogatov.org> Thu, 04 Aug 2017 02:35:38 +0000
status-ctl (0.0.3) unstable; urgency=medium
* Pipeline working.
* Updated main script.
-- Dmytro Bogatov <dmytro@dbogatov.org> Thu, 04 Aug 2017 01:35:38 +0000
......
......@@ -2,6 +2,8 @@
# CONSTANTS
CONFIG_DIR=/etc/status-site
PROJECT="status-site"
VERSION="0.0.3"
function usage {
printf "Usage: $0 command\n"
......@@ -39,11 +41,15 @@ function check-dependencies {
}
function start {
echo "started"
echo "STARTING STATUS-SITE"
docker-compose -p $PROJECT up -d --remove-orphans
}
function stop {
echo "stoped"
echo "STOPPING STATUS-SITE"
docker-compose -p $PROJECT stop
}
function reconfigure {
......@@ -68,23 +74,28 @@ function check-config {
}
function upgrade {
echo "upgrade"
echo "UPGRADING STATUS-SITE"
stop
docker-compose -p $PROJECT pull
start
}
function upgrade-clean {
echo "upgrade-cleaned"
echo "UPGRADING STATUS-SITE WITH CLEAN DATABASE"
stop
docker-compose -p $PROJECT rm -f
docker-compose -p $PROJECT pull
start
}
function help {
echo "helped"
usage
}
function version {
echo "version"
echo "0.0.1"
echo "status-ctl $VERSION"
}
check-dependencies
......
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