Skip to content
Snippets Groups Projects
Commit f17bdebb authored by Bob Mottram's avatar Bob Mottram
Browse files

Add backup functions to tripwire app

parent 51f7f3d0
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,9 @@ install: ...@@ -30,6 +30,9 @@ install:
install -m 755 src/${APP}-backup-local ${DESTDIR}${PREFIX}/bin/backup2friends install -m 755 src/${APP}-backup-local ${DESTDIR}${PREFIX}/bin/backup2friends
install -m 755 src/${APP}-restore-local ${DESTDIR}${PREFIX}/bin/restore install -m 755 src/${APP}-restore-local ${DESTDIR}${PREFIX}/bin/restore
install -m 755 src/${APP}-restore-remote ${DESTDIR}${PREFIX}/bin/restorefromfriend install -m 755 src/${APP}-restore-remote ${DESTDIR}${PREFIX}/bin/restorefromfriend
rm -f ${DESTDIR}/usr/share/${APP}/base/*
rm -f ${DESTDIR}/usr/share/${APP}/apps/*
rm -f ${DESTDIR}/usr/share/${APP}/utils/*
mv ${DESTDIR}${PREFIX}/bin/${APP}-base-* ${DESTDIR}/usr/share/${APP}/base mv ${DESTDIR}${PREFIX}/bin/${APP}-base-* ${DESTDIR}/usr/share/${APP}/base
mv ${DESTDIR}${PREFIX}/bin/${APP}-app-* ${DESTDIR}/usr/share/${APP}/apps mv ${DESTDIR}${PREFIX}/bin/${APP}-app-* ${DESTDIR}/usr/share/${APP}/apps
mv ${DESTDIR}${PREFIX}/bin/${APP}-utils-* ${DESTDIR}/usr/share/${APP}/utils mv ${DESTDIR}${PREFIX}/bin/${APP}-utils-* ${DESTDIR}/usr/share/${APP}/utils
......
...@@ -28,8 +28,12 @@ ...@@ -28,8 +28,12 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
function backup_tripwire { function backup_local_tripwire {
echo '' echo -n ''
}
function backup_remote_tripwire {
echo -n ''
} }
function remove_tripwire { function remove_tripwire {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment