dashboard - set IMAGE_VERSION back to latest, issue #21
This commit is contained in:
parent
d4716b5493
commit
f37439a92d
@ -6,7 +6,7 @@ PATH=$HOME/.docker/cli-plugins:/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sb
|
|||||||
get_appvars
|
get_appvars
|
||||||
|
|
||||||
config_dashboard() {
|
config_dashboard() {
|
||||||
echo -ne "\n* Configuring /federated/apps/dashboard container.."
|
echo -ne "* Configuring dashboard container.."
|
||||||
|
|
||||||
if [ ! -d "/federated/apps/dashboard" ]; then
|
if [ ! -d "/federated/apps/dashboard" ]; then
|
||||||
mkdir -p /federated/apps/dashboard/data
|
mkdir -p /federated/apps/dashboard/data
|
||||||
@ -36,7 +36,7 @@ networks:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > /federated/apps/dashboard/.env <<EOF
|
cat > /federated/apps/dashboard/.env <<EOF
|
||||||
IMAGE_VERSION="manifest-latest"
|
IMAGE_VERSION="latest"
|
||||||
DOMAIN="$DOMAIN"
|
DOMAIN="$DOMAIN"
|
||||||
TIER="$TIER"
|
TIER="$TIER"
|
||||||
EOF
|
EOF
|
||||||
@ -69,8 +69,6 @@ start_dashboard() {
|
|||||||
}
|
}
|
||||||
uninstall_dashboard() {
|
uninstall_dashboard() {
|
||||||
echo -ne "* Uninstalling dashboard container.."
|
echo -ne "* Uninstalling dashboard container.."
|
||||||
spin &
|
|
||||||
SPINPID=$!
|
|
||||||
|
|
||||||
# First stop the service
|
# First stop the service
|
||||||
cd /federated/apps/dashboard && docker compose -f docker-compose.yml -p dashboard down &> /dev/null
|
cd /federated/apps/dashboard && docker compose -f docker-compose.yml -p dashboard down &> /dev/null
|
||||||
@ -84,13 +82,10 @@ uninstall_dashboard() {
|
|||||||
# Delete the DNS record
|
# Delete the DNS record
|
||||||
docker exec pdns pdnsutil delete-rrset $DOMAIN dashboard A
|
docker exec pdns pdnsutil delete-rrset $DOMAIN dashboard A
|
||||||
|
|
||||||
kill -9 $SPINPID &> /dev/null
|
|
||||||
echo -ne "done.\n"
|
echo -ne "done.\n"
|
||||||
}
|
}
|
||||||
email_dashboard() {
|
email_dashboard() {
|
||||||
echo -ne "* Sending email to customer.."
|
echo -ne "* Sending email to customer.."
|
||||||
spin &
|
|
||||||
SPINPID=$!
|
|
||||||
|
|
||||||
cat > /federated/apps/mail/data/root/certs/mailfile <<EOF
|
cat > /federated/apps/mail/data/root/certs/mailfile <<EOF
|
||||||
<html>
|
<html>
|
||||||
@ -117,6 +112,5 @@ EOF
|
|||||||
docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Application installed on $DOMAIN\" $EMAIL < /root/certs/mailfile"
|
docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Application installed on $DOMAIN\" $EMAIL < /root/certs/mailfile"
|
||||||
rm /federated/apps/mail/data/root/certs/mailfile
|
rm /federated/apps/mail/data/root/certs/mailfile
|
||||||
|
|
||||||
kill -9 $SPINPID &> /dev/null
|
|
||||||
echo -ne "done.\n"
|
echo -ne "done.\n"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user