view scripts/install.sh @ 2137:67b504ba388c nginx_decoupled

don't assume the user's primary group name is the same as their username
author Violet7
date Mon, 19 Jan 2026 20:20:03 -0800
parents c691cf51c2a7
children
line wrap: on
line source

#!/bin/bash
set -e

cd "$(dirname $0)"

mkdir -p /usr/local/bin

cat >/usr/local/bin/luan <<End
#!/bin/bash

source "$(pwd)/luan.sh" "\$@"
End

chmod +x /usr/local/bin/luan

echo "the command 'luan' has been installed"