summaryrefslogtreecommitdiffstats
path: root/archive/backuppc/CONFIGURE
diff options
context:
space:
mode:
Diffstat (limited to 'archive/backuppc/CONFIGURE')
-rwxr-xr-xarchive/backuppc/CONFIGURE10
1 files changed, 10 insertions, 0 deletions
diff --git a/archive/backuppc/CONFIGURE b/archive/backuppc/CONFIGURE
new file mode 100755
index 0000000000..c821f9fbfd
--- /dev/null
+++ b/archive/backuppc/CONFIGURE
@@ -0,0 +1,10 @@
+if [[ "${BACKUPPC_DATA_DIR}" == "" ]]; then
+ config_query BACKUPPC_DD_OK "Default data dir is okay? (/var/backups)" y &&
+ if [[ "${BACKUPPC_DD_OK}" == "n" ]]; then
+ unset BACKUPPC_DATA_DIR
+ config_query_string BACKUPPC_DATA_DIR "Where should it be?" "/var/backups"
+ else
+ persistent_add BACKUPPC_DATA_DIR
+ BACKUPPC_DATA_DIR="/var/backups"
+ fi
+fi