use more efficient ordering

master
Paul Walko 2020-12-27 03:14:45 -05:00
parent 5af550f4d7
commit e8c9875d9f
6 changed files with 10 additions and 10 deletions

View File

@ -21,7 +21,7 @@ up () {
podman generate systemd airsonic --restart-policy=always --name > ~/.config/systemd/user/airsonic.service
systemctl --user daemon-reload
systemctl restart --user airsonic || systemctl start --user airsonic
systemctl start --user airsonic || systemctl restart --user airsonic
systemctl enable --user airsonic
}

View File

@ -27,7 +27,7 @@ up () {
podman generate systemd gitea --restart-policy=always --name > ~/.config/systemd/user/gitea.service
systemctl --user daemon-reload
systemctl restart --user gitea || systemctl start --user gitea
systemctl start --user gitea || systemctl restart --user gitea
systemctl enable --user gitea
}

View File

@ -16,7 +16,7 @@ up () {
podman generate systemd minecraft --restart-policy=always --name > ~/.config/systemd/user/minecraft.service
systemctl --user daemon-reload
systemctl restart --user minecraft || systemctl start --user minecraft
systemctl start --user minecraft || systemctl restart --user minecraft
systemctl enable --user minecraft
}

View File

@ -26,7 +26,7 @@ up () {
podman generate systemd nextcloud --restart-policy=always --name > ~/.config/systemd/user/nextcloud.service
systemctl --user daemon-reload
systemctl restart --user nextcloud || systemctl start --user nextcloud
systemctl start --user nextcloud || systemctl restart --user nextcloud
systemctl enable --user nextcloud
# Exposed on port 3306 in pew-net
@ -42,7 +42,7 @@ up () {
podman generate systemd nextcloud-mariadb --restart-policy=always --name > ~/.config/systemd/user/nextcloud-mariadb.service
systemctl --user daemon-reload
systemctl restart --user nextcloud-mariadb || systemctl start --user nextcloud-mariadb
systemctl start --user nextcloud-mariadb || systemctl restart --user nextcloud-mariadb
systemctl enable --user nextcloud-mariadb
# Exposed on port 6379 in pew-net
@ -53,11 +53,11 @@ up () {
podman generate systemd nextcloud-redis --restart-policy=always --name > ~/.config/systemd/user/nextcloud-redis.service
systemctl --user daemon-reload
systemctl restart --user nextcloud-redis || systemctl start --user nextcloud-redis
systemctl start --user nextcloud-redis || systemctl restart --user nextcloud-redis
systemctl enable --user nextcloud-redis
cp nextcloud-cron.service nextcloud-cron.timer ~/.config/systemd/user/
systemctl restart --user nextcloud-cron.timer || systemctl start --user nextcloud-cron.timer
systemctl start --user nextcloud-cron.timer || systemctl restart --user nextcloud-cron.timer
systemctl enable --user nextcloud-cron.timer
}

View File

@ -13,7 +13,7 @@ up () {
--env GUID=1000 \
--env TZ=US/Eastern \
--env URL=seaturtle.pw \
--env SUBDOMAINS=airsonic,git,nc,plex \
--env SUBDOMAINS=airsonic,git,jf,nc,plex \
--env VALIDATION=http \
--env EMAIL=paulsw.pw@gmail.com \
--volume /bigdata/k8s-config/nginx/config:/config:rw \
@ -27,7 +27,7 @@ up () {
podman generate systemd nginx --restart-policy=always --name > ~/.config/systemd/user/nginx.service
systemctl --user daemon-reload
systemctl restart --user nginx || systemctl start --user nginx
systemctl start --user nginx || systemctl restart --user nginx
systemctl enable --user nginx
}

View File

@ -21,7 +21,7 @@ up () {
podman generate systemd plex --restart-policy=always --name > ~/.config/systemd/user/plex.service
systemctl --user daemon-reload
systemctl restart --user plex || systemctl start --user plex
systemctl start --user plex || systemctl restart --user plex
systemctl enable --user plex
}