Last active
March 17, 2023 16:11
-
-
Save nickjacob/9909574 to your computer and use it in GitHub Desktop.
Revisions
-
nickjacob revised this gist
Sep 13, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,4 @@ Description=Demonstrate Bash [Service] ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))" ExecStart=/usr/bin/echo "2 + 2 = ${MYVAR}" -
Nick Jacob created this gist
Apr 1, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ [Unit] Description=Demonstrate Bash [Service] ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))" ExecStart=/usr/bin/ech "2 + 2 = ${MYVAR}"