Merge branch 'master' of github.com:chrys87/fenrir

This commit is contained in:
chrys 2017-03-18 22:51:04 +01:00
commit 3a0844badb
2 changed files with 7 additions and 6 deletions

View File

@ -6,8 +6,8 @@ read -p "This will install Fenrir. Press ctrl+c to cancel, or enter to continue.
install -m755 -d /opt/fenrir install -m755 -d /opt/fenrir
cp -a src/fenrir/* /opt/fenrir cp -a src/fenrir/* /opt/fenrir
install -m644 -D "autostart/systemd/fenrir.service" /usr/lib/systemd/system/fenrir.service install -m644 -D "autostart/systemd/fenrir.service" /usr/lib/systemd/system/fenrir.service
ln -s /opt/fenrir/fenrir-daemon /usr/bin/fenrir ln -s /opt/fenrir/fenrir-daemon /usr/bin/fenrir-daemon
ln -s /opt/fenrir/fenrir /usr/bin/fenrir
# tools # tools
install -m755 -d /usr/share/fenrir/tools install -m755 -d /usr/share/fenrir/tools
cp -a tools/* /usr/share/fenrir/tools cp -a tools/* /usr/share/fenrir/tools

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
#Basic install script for fenrir. #Basic uninstall script for fenrir.
cat << EOF cat << EOF
fenrir is going to remove. Fenrir is going to remove.
every script and settings are lost. All scripts and settings will be lost.
EOF EOF
# ask # ask
@ -10,6 +10,7 @@ read -p "This will remove fenrir and settings. Press ctrl+c to cancel, or enter
# do it # do it
unlink /usr/bin/fenrir unlink /usr/bin/fenrir
unlink /usr/bin/fenrir-daemon
rm -r /opt/fenrir rm -r /opt/fenrir
rm -r /usr/share/fenrir rm -r /usr/share/fenrir
rm -r /etc/fenrir rm -r /etc/fenrir
@ -18,5 +19,5 @@ rm /usr/lib/systemd/system/fenrir.service
# success message # success message
cat << EOF cat << EOF
fenrir is removed Fenrir has been successfully removed from your system.
EOF EOF