Sfoglia il codice sorgente

Add backup functions to tripwire app

Bob Mottram 8 anni fa
parent
commit
f17bdebb10
2 ha cambiato i file con 9 aggiunte e 2 eliminazioni
  1. 3
    0
      Makefile
  2. 6
    2
      src/freedombone-base-tripwire

+ 3
- 0
Makefile Vedi File

@@ -30,6 +30,9 @@ install:
30 30
 	install -m 755 src/${APP}-backup-local ${DESTDIR}${PREFIX}/bin/backup2friends
31 31
 	install -m 755 src/${APP}-restore-local ${DESTDIR}${PREFIX}/bin/restore
32 32
 	install -m 755 src/${APP}-restore-remote ${DESTDIR}${PREFIX}/bin/restorefromfriend
33
+	rm -f ${DESTDIR}/usr/share/${APP}/base/*
34
+	rm -f ${DESTDIR}/usr/share/${APP}/apps/*
35
+	rm -f ${DESTDIR}/usr/share/${APP}/utils/*
33 36
 	mv ${DESTDIR}${PREFIX}/bin/${APP}-base-* ${DESTDIR}/usr/share/${APP}/base
34 37
 	mv ${DESTDIR}${PREFIX}/bin/${APP}-app-* ${DESTDIR}/usr/share/${APP}/apps
35 38
 	mv ${DESTDIR}${PREFIX}/bin/${APP}-utils-* ${DESTDIR}/usr/share/${APP}/utils

+ 6
- 2
src/freedombone-base-tripwire Vedi File

@@ -28,8 +28,12 @@
28 28
 # You should have received a copy of the GNU Affero General Public License
29 29
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
30 30
 
31
-function backup_tripwire {
32
-    echo ''
31
+function backup_local_tripwire {
32
+    echo -n ''
33
+}
34
+
35
+function backup_remote_tripwire {
36
+    echo -n ''
33 37
 }
34 38
 
35 39
 function remove_tripwire {