mirror of
https://github.com/go-i2p/go-gitlooseleaf.git
synced 2025-06-08 10:31:57 -04:00
fix broken path
This commit is contained in:
14
Makefile
14
Makefile
@ -36,22 +36,12 @@ download:
|
||||
# Setup git user and directories
|
||||
setup-user:
|
||||
@echo "Setting up git user and directories..."
|
||||
id -u git &>/dev/null || adduser \
|
||||
--system \
|
||||
--shell /bin/bash \
|
||||
--gecos 'Git Version Control' \
|
||||
--group \
|
||||
--disabled-password \
|
||||
--home /home/git \
|
||||
git
|
||||
./preinst
|
||||
mkdir -p $(DATA_PATH)/custom
|
||||
mkdir -p $(DATA_PATH)/data
|
||||
mkdir -p $(DATA_PATH)/log
|
||||
mkdir -p $(CONFIG_PATH)
|
||||
chown -R git:git $(DATA_PATH)/
|
||||
chmod -R 750 $(DATA_PATH)/
|
||||
chown root:git $(CONFIG_PATH)
|
||||
chmod 770 $(CONFIG_PATH)
|
||||
./postinst
|
||||
|
||||
# Install Gitea binary
|
||||
install-binary: download
|
||||
|
0
install.sh
Normal file → Executable file
0
install.sh
Normal file → Executable file
18
preinst
Executable file
18
preinst
Executable file
@ -0,0 +1,18 @@
|
||||
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"
|
Reference in New Issue
Block a user