transmission: backup/restore settings at install/uninstall.

This commit is contained in:
Arne Fitzenreiter
2011-10-02 19:00:15 +02:00
parent 4236ab005d
commit b05f4b20d6
2 changed files with 6 additions and 4 deletions

View File

@@ -24,18 +24,18 @@
. /opt/pakfire/lib/functions.sh
extract_files
restore_backup ${NAME}
# Create download directories if they do not yet exist.
mkdir -p /var/transmission/{downloads,incomplete} 2>/dev/null
# Adjust permissions.
chown nobody.nobody /etc/transmission /var/transmission
# Start the service.
/etc/init.d/transmission start
# create startlinks
ln -sf ../init.d/transmission /etc/rc.d/rc0.d/K20transmission
ln -sf ../init.d/transmission /etc/rc.d/rc3.d/S99transmission
ln -sf ../init.d/transmission /etc/rc.d/rc6.d/K20transmission
# Start the service.
start_service --background ${NAME}
exit 0

View File

@@ -22,6 +22,8 @@
############################################################################
#
. /opt/pakfire/lib/functions.sh
stop_service ${NAME}
make_backup ${NAME}
remove_files
# Remove all start links.