updated for gitea server

This commit is contained in:
wt
2024-12-12 17:58:08 +07:00
parent 885f772630
commit f3518956c6
9 changed files with 169 additions and 9 deletions
+16
View File
@@ -9,6 +9,10 @@
. ./scripts/zlib.sh
. ./scripts/dropbear.sh
. ./scripts/sftp_server.sh
. ./scripts/curl.sh
. ./scripts/bash.sh
. ./scripts/git.sh
. ./scripts/gitea.sh
#----------- Building rootfs ----------------------
rootfs() {
@@ -49,6 +53,18 @@ rootfs() {
if [ "$sftp_server_enable" = "true" ]; then
sftp_server
fi
if [ "$curl_enable" = "true" ]; then
curl
fi
if [ "$bash_enable" = "true" ]; then
bash
fi
if [ "$git_enable" = "true" ]; then
git
fi
if [ "$gitea_enable" = "true" ]; then
gitea
fi
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init