mirror of
https://hacklab.nilfm.cc/acme
synced 2024-10-22 14:31:48 +00:00
16 lines
No EOL
359 B
Bash
Executable file
16 lines
No EOL
359 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z "$PLAN9" ]; then
|
|
echo "PLAN9 not set;"
|
|
echo "Please set it to the location of your plan9port installation."
|
|
exit 1
|
|
fi
|
|
|
|
if [ $(whoami) != "root" ]; then
|
|
mkdir -p ~/bin/9
|
|
cp acme ~/bin/9/acme
|
|
echo "acme has been installed to '${HOME}/bin/9/'"
|
|
else
|
|
cp acme ${PLAN9}/bin/acme
|
|
echo "acme has been installed to '${PLAN9}/bin/'"
|
|
fi |