Commit 33b6c96f authored by Jan-Oliver Opdenhövel's avatar Jan-Oliver Opdenhövel
Browse files

Last tweaks

parent 0d64cc01
......@@ -13,3 +13,10 @@
name: ansible-pull.timer
state: started
enabled: yes
- name: disable legacy upgrade timer
service:
name: system-upgrade.timer
state: stopped
enabled: no
ignore_errors: yes
\ No newline at end of file
......@@ -7,7 +7,8 @@ set -e
export DATA_DIR=/var/lib/postgres/data
export PG_DATA_VERSION=$(cat $DATA_DIR/PG_VERSION)
export MAJOR_UPDATE_AVAIL=$(pacman -Q postgresql | grep "$(($PG_DATA_VERSION + 1))[^ ]*$" | wc -l)
export UPDATE_VERSION=$(pacman -Qu postgresql) # Fails if no update, script stops.
export MAJOR_UPDATE_AVAIL=$(echo $UPDATE_VERSION | grep "$(($PG_DATA_VERSION + 1))[^ ]*$" | wc -l)
if [ $MAJOR_UPDATE_AVAIL -gt 0 ]
then
......
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