24 lines
616 B
Fish
Executable File
24 lines
616 B
Fish
Executable File
#!/bin/fish
|
|
|
|
cp ./src/snap-pac-uki.fish /usr/local/bin/snap-pac-uki
|
|
echo "installed script."
|
|
|
|
if not test -d "/etc/snap-pac-uki"
|
|
mkdir -p "/etc/snap-pac-uki"
|
|
echo "created config dir."
|
|
end
|
|
|
|
if not test -f "/etc/snap-pac-uki/config.fish"
|
|
cp ./src/config.fish /etc/snap-pac-uki/config.fish
|
|
echo "installed config script."
|
|
else
|
|
cp ./src/config.fish /etc/snap-pac-uki/config-new.fish
|
|
echo "found existing config script -> installed as -new file."
|
|
end
|
|
|
|
cp ./pacman/* /usr/share/libalpm/hooks/
|
|
echo "installed pacman hooks."
|
|
|
|
cp ./systemd/* /etc/systemd/system/
|
|
echo "installed systemd unit files"
|