Testing
This commit is contained in:
parent
5756ab0c4e
commit
106f3e0806
1 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
||||||
post_install() {
|
post_install() {
|
||||||
|
echo "installing repo"
|
||||||
|
|
||||||
# Initiate the stow repo
|
# Initiate the stow repo
|
||||||
git clone --depth 1 --progress https://git.depeuter.tk/tdpeuter/arch-pkgs /usr/share/tdpeuter/arch-pkgs
|
git clone --depth 1 --progress https://git.depeuter.tk/tdpeuter/arch-pkgs /usr/share/tdpeuter/arch-pkgs
|
||||||
|
|
||||||
|
@ -7,14 +9,21 @@ post_install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
|
echo "moving directories"
|
||||||
cd /usr/share/tdpeuter/arch-pkgs/
|
cd /usr/share/tdpeuter/arch-pkgs/
|
||||||
|
|
||||||
|
echo "pulling repo"
|
||||||
sleep 2
|
sleep 2
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
user=$(who | cut -f1 -d' ')
|
user=$(who | cut -f1 -d' ')
|
||||||
packages=$(ls ./stow)
|
packages=$(ls ./stow)
|
||||||
|
|
||||||
|
echo "stowing packages"
|
||||||
stow -d ./stow -t "/home/${user}" ${packages}
|
stow -d ./stow -t "/home/${user}" ${packages}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre_remove() {
|
||||||
|
rm -rf /usr/share/tdpeuter/arch-pkgs
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue