Skip to content

Commit

Permalink
bugfix at safety check for server.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
simylein committed Jan 23, 2021
1 parent 7d2892e commit 0bbf604
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 18 deletions.
3 changes: 1 addition & 2 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ else
fi

# read server.properties file with error checking
if [[ -f "server.properties" ]]; then
else
if ! [[ -f "server.properties" ]]; then
echo "fatal: server.properties is missing" >> fatalerror.log
echo "fatal: server.properties is missing"
exit 1
Expand Down
3 changes: 1 addition & 2 deletions maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ else
fi

# read server.properties file with error checking
if [[ -f "server.properties" ]]; then
else
if ! [[ -f "server.properties" ]]; then
echo "fatal: server.properties is missing" >> fatalerror.log
echo "fatal: server.properties is missing"
exit 1
Expand Down
3 changes: 1 addition & 2 deletions prerender.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ else
fi

# read server.properties file with error checking
if [[ -f "server.properties" ]]; then
else
if ! [[ -f "server.properties" ]]; then
echo "fatal: server.properties is missing" >> fatalerror.log
echo "fatal: server.properties is missing"
exit 1
Expand Down
3 changes: 1 addition & 2 deletions reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ else
fi

# read server.properties file with error checking
if [[ -f "server.properties" ]]; then
else
if ! [[ -f "server.properties" ]]; then
echo "fatal: server.properties is missing" >> fatalerror.log
echo "fatal: server.properties is missing"
exit 1
Expand Down
3 changes: 1 addition & 2 deletions restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ else
fi

# read server.properties file with error checking
if [[ -f "server.properties" ]]; then
else
if ! [[ -f "server.properties" ]]; then
echo "fatal: server.properties is missing" >> fatalerror.log
echo "fatal: server.properties is missing"
exit 1
Expand Down
3 changes: 1 addition & 2 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ else
fi

# read server.properties file with error checking
if [[ -f "server.properties" ]]; then
else
if ! [[ -f "server.properties" ]]; then
echo "fatal: server.properties is missing" >> fatalerror.log
echo "fatal: server.properties is missing"
exit 1
Expand Down
3 changes: 1 addition & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ else
fi

# read server.properties file with error checking
if [[ -f "server.properties" ]]; then
else
if ! [[ -f "server.properties" ]]; then
echo "fatal: server.properties is missing" >> fatalerror.log
echo "fatal: server.properties is missing"
exit 1
Expand Down
3 changes: 1 addition & 2 deletions stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ else
fi

# read server.properties file with error checking
if [[ -f "server.properties" ]]; then
else
if ! [[ -f "server.properties" ]]; then
echo "fatal: server.properties is missing" >> fatalerror.log
echo "fatal: server.properties is missing"
exit 1
Expand Down
3 changes: 1 addition & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ else
fi

# read server.properties file with error checking
if [[ -f "server.properties" ]]; then
else
if ! [[ -f "server.properties" ]]; then
echo "fatal: server.properties is missing" >> fatalerror.log
echo "fatal: server.properties is missing"
exit 1
Expand Down

0 comments on commit 0bbf604

Please sign in to comment.