set -e
VERSION=$(echo $0 | cut -d "." -f 1);
+#export $VERSION;
if [ ! "$1" ]; then exit 1; fi
if [ ! -d ~/immudex-testing ]; then exit 1; fi
else apt install git -y && GIT_SSH_COMMAND="ssh -p 2022" git clone ssh://git@searx.morketsmerke.org/~/immudex-testing.git;
fi
+export VERSION=$VERSION;
source ~/immudex-testing/versions/template.sh;
echo "deb http://deb.debian.org/debian/ bookworm main" > /etc/apt/sources.list;
cp -rvv /etc/skel/.??* /home/user;
cp -rvv /etc/skel/?* /home/user;
mkdir /home/user/.local;
- tar -xvf ~/immudex-testing/files/017/local_user.tar -C /home/user/.local;
+ tar -xvf ~/immudex-testing/files/${VERSION}/local_user.tar -C /home/user/.local;
rm /home/user/.face;
cp /usr/share/images/desktop-base/immudex_xfce_greeter_logo.png /home/user/.face;
chown -R user:user /home/user;
cp -rvv /etc/skel/.??* /home/xf0r3m;
cp -rvv /etc/skel/?* /home/xf0r3m;
mkdir /home/xf0r3m/.local;
- tar -xvf ~/immudex-testing/files/017/local_xf0r3m.tar -C /home/xf0r3m/.local;
+ tar -xvf ~/immudex-testing/files/${VERSION}/local_xf0r3m.tar -C /home/xf0r3m/.local;
rm /home/xf0r3m/.face;
cp /usr/share/images/desktop-base/immudex_xfce_greeter_logo.png /home/xf0r3m/.face;
chown -R xf0r3m:xf0r3m /home/xf0r3m;
}
function set_notifier_packages() {
- cp -vv ~/immudex-testing/files/011/Notifier\ -\ packages.desktop /home/xf0r3m/.config/autostart;
+ cp -vv ~/immudex-testing/files/${VERSION}/Notifier\ -\ packages.desktop /home/xf0r3m/.config/autostart;
chown xf0r3m:xf0r3m /home/xf0r3m/.config/autostart/Notifier\ -\ packages.desktop;
}
function set_xfce4_notes_autostart() {
- cp -vv ~/immudex-testing/files/024/autostart-x4notes.desktop /home/xf0r3m/.config/autostart;
+ cp -vv ~/immudex-testing/files/${VERSION}/autostart-x4notes.desktop /home/xf0r3m/.config/autostart;
chown xf0r3m:xf0r3m /home/xf0r3m/.config/autostart/autostart-x4notes.desktop;
}
-VERSION=$(echo $0 | cut -d "." -f 1);
-if [ ! "$VERSION" ]; then echo -e "\e[31mUpdate failed!\e[0m"; exit 1; fi;
-