diff options
author | Angel Caido | 2015-10-06 12:45:54 -0400 |
---|---|---|
committer | Angel Caido | 2015-10-06 12:45:54 -0400 |
commit | cb69389079d20b816bf8ffcaff194ca4eb8703a3 (patch) | |
tree | a826dde3310c73d8a13cb57697f704fc92c23f4e /epoptes-client.install | |
parent | 1f1a20974047a9fc4540f2d6d441933d23fd30c0 (diff) | |
download | aur-cb69389079d20b816bf8ffcaff194ca4eb8703a3.tar.gz |
Initial import
Diffstat (limited to 'epoptes-client.install')
-rw-r--r-- | epoptes-client.install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/epoptes-client.install b/epoptes-client.install new file mode 100644 index 000000000000..2876ce6cd5bc --- /dev/null +++ b/epoptes-client.install @@ -0,0 +1,24 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + echo "The installation has finished. Please bare in mind you'll have to do the following before using Epoptes:" + echo "1.- You will have to run as root:" + echo " 'systemctl enable epoptes-client' to enable the Epoptes client daemon" + echo "2.- You may need to restart your system for everything to work." + echo "3.- If you don't want to restart your system, then [after doing all of the above] you will have to run as root:" + echo " 'systemctl start epoptes-client' to start the Epoptes client daemon." + echo "After all this you still have to log out and then log back in and now Epoptes should work without a problem." +} + +post_upgrade() { + systemctl daemon-reload +} + +pre_remove() { + systemctl stop epoptes-client.service + systemctl disable epoptes-client.service +} + +post_remove() { + rm /etc/default/epoptes-client + systemctl daemon-reload +} |