summarylogtreecommitdiffstats
path: root/btsync-autoconfig.install
diff options
context:
space:
mode:
Diffstat (limited to 'btsync-autoconfig.install')
-rw-r--r--btsync-autoconfig.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/btsync-autoconfig.install b/btsync-autoconfig.install
new file mode 100644
index 000000000000..93cf2cfcc7ed
--- /dev/null
+++ b/btsync-autoconfig.install
@@ -0,0 +1,20 @@
+post_install() {
+ systemctl --global enable btsync-autoconfig.service
+cat << EOF
+
+ Whenever a user starts the btsync user service, the btsync-autoconfig service
+ will create ${HOME}/.config/btsync/btsync.conf with default contents, if it
+ does not already exist. The service will also create the configured
+ storage_path directory if it does not already exist.
+
+ You may want to change the device_name, webui.login and webui.password
+ settings from the default. You can either edit the config file directly or use
+ the /usr/share/btsync-autoconfig/btsync-makeconfig.sh script, pass it the
+ --help flag to learn more about it.
+
+EOF
+}
+
+pre_remove() {
+ systemctl --global disable btsync-autoconfig.service
+}