summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--[-rwxr-xr-x]home/bin/config-update.sh35
1 files changed, 2 insertions, 33 deletions
diff --git a/home/bin/config-update.sh b/home/bin/config-update.sh
index 6dc7deb..61bfabb 100755..100644
--- a/home/bin/config-update.sh
+++ b/home/bin/config-update.sh
@@ -1,34 +1,3 @@
-#!/bin/bash
+#!/bin/sh
-URL="http://pluto.fsinf.at/~astra/config/"
-FILE="skel.tar.gz"
-
-cd ${HOME}
-
-# fetch file from server
-TMP=`mktemp -u --suffix=".tar.gz" "config-updater-XXXXXX"`
-curl -L -s "${URL}${FILE}" -o $TMP
-
-# check if file exists and is not empty
-if [ -e $TMP ]; then
- if [ -s $TMP ]; then
- # run pre-update commands if file exists
- if [ -r ${HOME}/var/system/config-updater/pre-update ]; then
- . ${HOME}/var/system/config-updater/pre-update
- fi
-
- # unpack new structure
- tar -xzf $TMP --strip-components=1
-
- # run post-update commands if file exists
- if [ -r ${HOME}/var/system/config-updater/post-update ]; then
- . ${HOME}/var/system/config-updater/post-update
- fi
- else
- echo "Could not fetch updated config, $TMP is empty"
- fi
-else
- echo "Could not fetch updated config, $TMP is missing"
-fi
-
-rm -f $TMP
+curl -L -s https://pluto.fsinf.at/~astra/config/load.sh | sh