2022-10-26 12:49:01 +02:00
|
|
|
post_install() {
|
2022-10-26 13:48:16 +02:00
|
|
|
# Initiate the stow repo
|
2022-10-26 14:54:09 +02:00
|
|
|
git clone --depth 1 --progress https://git.depeuter.tk/tdpeuter/arch-pkgs /usr/share/tdpeuter/arch-pkgs
|
2022-10-26 15:23:51 +02:00
|
|
|
|
|
|
|
sleep 2
|
2022-10-26 12:49:01 +02:00
|
|
|
post_upgrade
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2022-10-26 15:13:57 +02:00
|
|
|
cd /usr/share/tdpeuter/arch-pkgs/
|
|
|
|
|
|
|
|
sleep 2
|
|
|
|
git pull
|
2022-10-26 14:49:19 +02:00
|
|
|
|
|
|
|
user=$(who | cut -f1 -d' ')
|
2022-10-26 15:00:54 +02:00
|
|
|
packages=$(ls ./stow)
|
2022-10-26 14:49:19 +02:00
|
|
|
|
2022-10-26 15:00:54 +02:00
|
|
|
stow -d ./stow -t "/home/${user}" ${packages}
|
2022-10-26 12:49:01 +02:00
|
|
|
}
|
2022-10-26 13:48:16 +02:00
|
|
|
|