-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update rsnapshot to v1.4.4 - add logs for installation steps - update icon
- Loading branch information
Showing
5 changed files
with
21 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
rsnapshot-1.4.3.tar.gz SHA1 0596d14bd852114db99f4e441040058b3ebf166f | ||
rsnapshot-1.4.3.tar.gz SHA256 2b0c7aad3e14e0260513331425a605d73c3bdd7936d66d418d7714a76bc55bd1 | ||
rsnapshot-1.4.3.tar.gz MD5 3d6e6f3b666ae18ed4d3bf36432fff4a | ||
rsnapshot-1.4.4.tar.gz SHA1 622b48e668b334b69a378aec9316b872aeabe19f | ||
rsnapshot-1.4.4.tar.gz SHA256 c1cb7cb748c5a9656c386362bdf6c267959737724abb505fbf9e940a9d988579 | ||
rsnapshot-1.4.4.tar.gz MD5 86717b9f39c7a7a5dd9e0eba556f829e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
|
||
service_postinst () | ||
{ | ||
# Copy default config file | ||
if [ ! -e ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf ]; then | ||
cp ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf.default ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf | ||
echo "Create rsnapshot.conf from rsnapshot.conf.default" | ||
cp ${SYNOPKG_PKGVAR}/rsnapshot.conf.default ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf | ||
fi | ||
} | ||
|
||
service_save () | ||
{ | ||
# Save configuration | ||
$CP ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf "${TMP_DIR}"/rsnapshot.conf | ||
echo "Save rsnapshot.conf to ${TMP_DIR}" | ||
$CP ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf "${TMP_DIR}/rsnapshot.conf" | ||
} | ||
|
||
service_restore () | ||
{ | ||
# Restore configuration | ||
$MV "${TMP_DIR}"/rsnapshot.conf ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf | ||
echo "Restore rsnapshot.conf from ${TMP_DIR}" | ||
$MV "${TMP_DIR}/rsnapshot.conf" ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf | ||
} | ||
|
||
service_postupgrade () | ||
{ | ||
# Upgrade configuration file if needed | ||
echo "Provide configuration file upgrade" | ||
${SYNOPKG_PKGDEST}/bin/rsnapshot upgrade-config-file | ||
} | ||
|