Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Use base64 for START_SCRIPT_BASE64 decode
Browse files Browse the repository at this point in the history
  • Loading branch information
vholer committed Sep 12, 2017
1 parent 7246a09 commit 16d375d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/one-context.d/net-97-start-script
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ START_SCRIPT_AVAILABLE=no
chmod 700 "${TMP_DIR}"

if [ -n "$START_SCRIPT_BASE64" ]; then
echo -en "$START_SCRIPT_BASE64" | openssl enc -d -base64 -A > $TMP_FILE
echo -en "$START_SCRIPT_BASE64" | base64 -d > $TMP_FILE
START_SCRIPT_AVAILABLE=yes
elif [ -n "$START_SCRIPT" ]; then
echo -en "$START_SCRIPT" > $TMP_FILE
Expand Down

0 comments on commit 16d375d

Please sign in to comment.