Add backup functions to tripwire app
This commit is contained in:
parent
51f7f3d0fa
commit
f17bdebb10
3
Makefile
3
Makefile
|
@ -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 @@
|
||||||
# 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 {
|
||||||
|
|
Loading…
Reference in New Issue