Skip to content

Commit

Permalink
Cleaning functions...
Browse files Browse the repository at this point in the history
  • Loading branch information
jact committed Oct 26, 2017
1 parent 20d20ab commit cfd13c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup/db_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function remove_database()
_NAME=$(get_migasfree_setting "DATABASES['default']['NAME']")
if [ is_sqlite_db -eq 0 ]
then
rm -f $_NAME
rm -f "$_NAME"
else
su - postgres -c "psql -c 'DROP DATABASE IF EXISTS $_NAME' &>/dev/null"
fi
Expand All @@ -33,7 +33,7 @@ function is_pg_hba_configured()
{
_NAME=$(get_migasfree_setting "DATABASES['default']['NAME']")
_FILE=$(get_pg_hba)
grep -q $_NAME $_FILE
grep -q "$_NAME" "$_FILE"
test $? -eq 0
}

Expand Down
2 changes: 1 addition & 1 deletion setup/web_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function create_apache_config()
_MIGASFREE_APP_DIR=$(get_migasfree_setting MIGASFREE_APP_DIR)

_CONF_FILE="$_CONF_PATH"/migasfree.conf
cat > $_CONF_FILE << EOF
cat > "$_CONF_FILE" << EOF
Alias /static $_STATIC_ROOT
<Directory $_STATIC_ROOT>
$_ALLOW_ALL
Expand Down

0 comments on commit cfd13c4

Please sign in to comment.