Skip to content

Commit

Permalink
fix default backup location
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Aug 5, 2019
1 parent fa71a1b commit f1a828e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion run/nobody/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ mkdir -p /config/urbackup/log
mkdir -p /config/urbackup/tmp
mkdir -p /config/urbackup/config

# if config file doesnt exist then copy default
if [[ ! -f /config/urbackup/config/urbackupsrv ]]; then

# copy default config to volume map
cp /etc/default/urbackupsrv /config/urbackup/config/urbackupsrv

# set default location for backup storage to /media
echo "/media" > /var/urbackup/backupfolder

fi

# run urbackup server
Expand Down

0 comments on commit f1a828e

Please sign in to comment.