Remove paths which aren't needed
This commit is contained in:
parent
f077dc7726
commit
5e7eefa2de
|
@ -70,33 +70,6 @@ if [ -f /root/dbpass ]; then
|
|||
DATABASE_PASSWORD=$(cat /root/dbpass)
|
||||
fi
|
||||
|
||||
function update_domains {
|
||||
RSS_READER_DOMAIN_NAME='ttrss'
|
||||
if grep -q "RSS reader domain" $COMPLETION_FILE; then
|
||||
RSS_READER_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}')
|
||||
fi
|
||||
GIT_DOMAIN_NAME='gogs'
|
||||
if grep -q "Gogs domain" $COMPLETION_FILE; then
|
||||
GIT_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}')
|
||||
fi
|
||||
MICROBLOG_DOMAIN_NAME='microblog'
|
||||
if grep -q "GNU Social domain" $COMPLETION_FILE; then
|
||||
MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}')
|
||||
fi
|
||||
HUBZILLA_DOMAIN_NAME='hubzilla'
|
||||
if grep -q "Hubzilla domain" $COMPLETION_FILE; then
|
||||
HUBZILLA_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Hubzilla domain" | awk -F ':' '{print $2}')
|
||||
fi
|
||||
FULLBLOG_DOMAIN_NAME='blog'
|
||||
if grep -q "Blog domain" $COMPLETION_FILE; then
|
||||
FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Blog domain" | awk -F ':' '{print $2}')
|
||||
fi
|
||||
MEDIAGOBLIN_DOMAIN_NAME='mediagoblin'
|
||||
if grep -q "Mediagoblin domain" $COMPLETION_FILE; then
|
||||
MEDIAGOBLIN_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Mediagoblin domain" | awk -F ':' '{print $2}')
|
||||
fi
|
||||
}
|
||||
|
||||
function make_backup_directory {
|
||||
# make a backup directory on the drive
|
||||
if [ ! -d $USB_MOUNT/backup ]; then
|
||||
|
@ -443,7 +416,6 @@ backup_mount_drive $1 $2
|
|||
remove_backup_directory $remove_option
|
||||
make_backup_directory
|
||||
check_storage_space_remaining
|
||||
update_domains
|
||||
backup_users
|
||||
prepare_directories
|
||||
backup_directories
|
||||
|
|
Loading…
Reference in New Issue