pjs/mobile/android/installer/debian/backup.in

21 строка
455 B
Plaintext

#filter substitution
#!/bin/sh
# We do not care about parameters yet
FENNEC_HOME=$HOME/.mozilla/@MOZ_APP_NAME@
BACKUP=$HOME/.mozilla/backup
rm -rf $BACKUP || exit 2
# do the backup only if there already is a profile
if [ -d $FENNEC_HOME ]; then
cp -a $FENNEC_HOME $BACKUP || exit 2
find $BACKUP -name "*.dat" \
-o -name "*.mfasl" \
-o -name "Cache" \
-o -name "OfflineCache" | xargs rm -rf || exit 2
fi
exit 0