summaryrefslogtreecommitdiffstats
path: root/abs/extra/rslsync/rslsync.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-05-30 05:09:28 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-05-30 05:09:28 (GMT)
commit31c9c160045a4136891b5e96c18f49abbcc063a0 (patch)
tree05a1f5e88354e36894dab42ee37cc4a412d09d61 /abs/extra/rslsync/rslsync.install
parent6c24c51f9af1f9efe46d6bbc6ed01a695543f032 (diff)
downloadlinhes_pkgbuild-31c9c160045a4136891b5e96c18f49abbcc063a0.zip
linhes_pkgbuild-31c9c160045a4136891b5e96c18f49abbcc063a0.tar.gz
linhes_pkgbuild-31c9c160045a4136891b5e96c18f49abbcc063a0.tar.bz2
rslsync: initial inclusion
Diffstat (limited to 'abs/extra/rslsync/rslsync.install')
-rw-r--r--abs/extra/rslsync/rslsync.install53
1 files changed, 53 insertions, 0 deletions
diff --git a/abs/extra/rslsync/rslsync.install b/abs/extra/rslsync/rslsync.install
new file mode 100644
index 0000000..a64f8ce
--- /dev/null
+++ b/abs/extra/rslsync/rslsync.install
@@ -0,0 +1,53 @@
+post_install() {
+ post_upgrade
+}
+
+post_upgrade() {
+cat << EOF
+ WebGUI can be accessed via following URL: http://localhost:8888
+
+ * Running rslsync system instance (using dedicated rslsync:rslsync account)
+
+ System instance of rslsync is preconfigured (configuration file located
+ at /etc/rslsync.conf) and can be used directly after installation.
+
+ Execute:
+
+ to reload system systemd modules: systemctl daemon-reload
+ to start rslsync manually: systemctl start rslsync
+ to autostart rslsync on system start: systemctl enable rslsync
+
+ * Running rslsync user instance (using current user account)
+
+ User instance MUST be configured before use. To perform configuration,
+ install rslsync-autoconfig package or follow manual configuration steps:
+
+ 1. Copy /etc/rslsync/rslsync.conf to ~/.config/rslsync/rslsync.conf for
+ the user you wish to configure rslsync:
+
+ mkdir -p ~/.config/rslsync
+ cp /etc/rslsync.conf ~/.config/rslsync/rslsync.conf
+
+ 2. Replace user-specific references with the appropriate information,
+ including the following settings:
+
+ - storage_path
+ - pid_file
+ - webui.listen
+ - webui.login
+ - webui.password
+
+ 3. Make sure folder you specified as storage_path and folder where pid_file will
+ be located both exist in the filesystem, since rslsync will not create it for you.
+
+ Execute:
+
+ to reload user systemd modules: systemctl --user daemon-reload
+ to start rslsync manually: systemctl --user start rslsync
+ to autostart rslsync on user login: systemctl --user enable rslsync
+EOF
+}
+
+post_remove() {
+ echo -e "Please remove /var/lib/rslsync folder manually"
+}