Skip to content

Commit

Permalink
The memory unit is mandatory.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Jan 11, 2024
1 parent 7340610 commit 0b75cbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rootfs/etc/cont-init.d/55-crashplan-pro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fi
# Update CrashPlan Engine max memory if needed.
if [ "${CRASHPLAN_SRV_MAX_MEM:-UNSET}" != "UNSET" ]; then
# Validate the max memory value.
if ! echo "$CRASHPLAN_SRV_MAX_MEM" | grep -q "^[0-9]\+[g|G|m|M|k|K]\?$"
if ! echo "$CRASHPLAN_SRV_MAX_MEM" | grep -q "^[0-9]\+[g|G|m|M|k|K]$"
then
echo "ERROR: invalid value for CRASHPLAN_SRV_MAX_MEM variable: '$CRASHPLAN_SRV_MAX_MEM'."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/cont-init.d/55-validate_max_mem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "${CRASHPLAN_SRV_MAX_MEM:-UNSET}" = "UNSET" ]; then
exit 0
fi

if ! echo "$CRASHPLAN_SRV_MAX_MEM" | grep -q "^[0-9]\+[g|G|m|M|k|K]\?$"
if ! echo "$CRASHPLAN_SRV_MAX_MEM" | grep -q "^[0-9]\+[g|G|m|M|k|K]$"
then
echo "ERROR: invalid value for CRASHPLAN_SRV_MAX_MEM variable: '$CRASHPLAN_SRV_MAX_MEM'."
exit 1
Expand Down

0 comments on commit 0b75cbe

Please sign in to comment.