summarylogtreecommitdiffstats
path: root/couchpotato-git.install
diff options
context:
space:
mode:
authorwillemw122021-01-16 08:12:55 +0100
committerwillemw122021-01-16 08:12:55 +0100
commitfa6814fb12303d0096b81fd7320482a247e28295 (patch)
tree69053e631766a4baca664bec04cce3bf403360c3 /couchpotato-git.install
parent9dc2401abb684dde4a5600d3330e58953dc28995 (diff)
downloadaur-fa6814fb12303d0096b81fd7320482a247e28295.tar.gz
Switch to "develop" branch...
Install in "app" subfolder Fix pkgver(). Change description. Cleanup "depends" Set URL for the built-in updater Rename and change .install file Change service description and source URL. Add restart service option Remove Python 3 fix
Diffstat (limited to 'couchpotato-git.install')
-rw-r--r--couchpotato-git.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/couchpotato-git.install b/couchpotato-git.install
new file mode 100644
index 000000000000..848d2d7dd06b
--- /dev/null
+++ b/couchpotato-git.install
@@ -0,0 +1,26 @@
+post_install() {
+ post_upgrade
+
+ echo "==> Start and enable couchpotato.service. Then visit http://localhost:5050/"
+}
+
+post_upgrade() {
+ systemd-sysusers couchpotato.conf
+
+ chown -R couchpotato:couchpotato /opt/couchpotato/app
+ chown couchpotato:couchpotato /opt/couchpotato/data
+}
+
+pre_remove() {
+ echo "==> Stopping couchpotato.service..."
+ systemctl stop couchpotato.service
+}
+
+post_remove() {
+ rm -rf /opt/couchpotato/app
+
+ #echo "==> To delete the configuration files, run as root: rm -rf /opt/couchpotato/data"
+ echo "==> To delete the configuration files, run as root: rm -rf /opt/couchpotato/{config.ini,data}"
+ echo "==> To delete the \"couchpotato\" user, run as root: userdel --force couchpotato"
+}
+