mirror of
https://github.com/go-i2p/go-gitlooseleaf.git
synced 2025-06-08 02:28:31 -04:00
18 lines
406 B
Plaintext
Executable File
18 lines
406 B
Plaintext
Executable File
if [ "$(id -u)" != "0" ]; then
|
|
echo "This script must be run as root" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
BINARY_PATH=${BASE}/usr/local/bin/gitea
|
|
SYSTEMD_PATH=${BASE}/etc/systemd/system
|
|
CONFIG_PATH=${BASE}/etc/gitea
|
|
DATA_PATH=${BASE}/var/lib/gitea
|
|
|
|
echo "id -u git &>/dev/null || adduser \
|
|
--system \
|
|
--shell /bin/bash \
|
|
--gecos 'Git Version Control' \
|
|
--group \
|
|
--disabled-password \
|
|
--home /home/git \
|
|
git" |