mirror of
https://github.com/ublue-os/forge.git
synced 2025-04-16 11:33:43 +03:00
fix(main): use full podman.sock path not only user id
This commit is contained in:
parent
8a8b396e8d
commit
d93122baf1
|
@ -19,7 +19,7 @@ spec:
|
|||
volumes:
|
||||
- name: podman-socket
|
||||
hostPath:
|
||||
path: /run/user/${FORGE_HOST_UID}/podman/podman.sock
|
||||
path: ${FORGE_PODMAN_SOCKET_PATH}
|
||||
type: Socket
|
||||
- name: ublue-os_forge-certs-pvc
|
||||
persistentVolumeClaim:
|
||||
|
|
26
forge.sh
26
forge.sh
|
@ -2,7 +2,6 @@
|
|||
# Variables
|
||||
export FORGE_DOMAIN_NAME="ublue.local"
|
||||
export FORGE_NETWORK_NAME="ublue-os_forge"
|
||||
export FORGE_HOST_UID=$(id -u)
|
||||
export FORGE_POD_CONFIGURATION="forge-pod.yml"
|
||||
export FORGE_POD_NAME_PRE_AMBLE="ublue-os_forge-"
|
||||
export FORGE_POD_NAME_REVERSE_PROXY=${FORGE_POD_NAME_PRE_AMBLE}rvproxy
|
||||
|
@ -91,6 +90,18 @@ function create_network {
|
|||
}
|
||||
|
||||
function check_prerequisites {
|
||||
echo -e "${YELLOW}Checking jq installation${ENDCOLOR}"
|
||||
JQ_PATH=$(which jq 2>/dev/null || echo 'FALSE')
|
||||
if [ "$JQ_PATH" == "FALSE" ];
|
||||
then
|
||||
echo -e "${RED}It looks like jq is not installed.${ENDCOLOR}"
|
||||
echo -e "${RED}Make sure to install it first.${ENDCOLOR}"
|
||||
echo -e "${YELLOW}Need help? -> https://jqlang.github.io/jq/download{ENDCOLOR}"
|
||||
exit 1
|
||||
else
|
||||
echo -e "${GREEN}jq is installed${ENDCOLOR}"
|
||||
echo ""
|
||||
fi
|
||||
echo -e "${YELLOW}Checking podman installation${ENDCOLOR}"
|
||||
PODMAN_PATH=$(which podman 2>/dev/null || echo 'FALSE')
|
||||
if [ "$PODMAN_PATH" == "FALSE" ];
|
||||
|
@ -112,6 +123,7 @@ function check_prerequisites {
|
|||
exit 1
|
||||
else
|
||||
echo -e "${GREEN}podman socket is ${PODMAN_SERVICE_STATUS}${ENDCOLOR}"
|
||||
export FORGE_PODMAN_SOCKET_PATH=$(podman system info -f json | jq '.host.remoteSocket.path')
|
||||
echo ""
|
||||
fi
|
||||
echo -e "${YELLOW}Checking net.ipv4.ip_unprivileged_port_start${ENDCOLOR}"
|
||||
|
@ -126,18 +138,6 @@ function check_prerequisites {
|
|||
echo -e "${GREEN}net.ipv4.ip_unprivileged_port_start is ${NET_IPV4_UNPRIV_PORT_START}${ENDCOLOR}"
|
||||
echo ""
|
||||
fi
|
||||
echo -e "${YELLOW}Checking jq installation${ENDCOLOR}"
|
||||
JQ_PATH=$(which jq 2>/dev/null || echo 'FALSE')
|
||||
if [ "$JQ_PATH" == "FALSE" ];
|
||||
then
|
||||
echo -e "${RED}It looks like jq is not installed.${ENDCOLOR}"
|
||||
echo -e "${RED}Make sure to install it first.${ENDCOLOR}"
|
||||
echo -e "${YELLOW}Need help? -> https://jqlang.github.io/jq/download{ENDCOLOR}"
|
||||
exit 1
|
||||
else
|
||||
echo -e "${GREEN}jq is installed${ENDCOLOR}"
|
||||
echo ""
|
||||
fi
|
||||
echo -e "${YELLOW}Checking sshd service${ENDCOLOR}"
|
||||
SSH_SERVICE_STATUS="$(systemctl is-active sshd)"
|
||||
if [ "${SSH_SERVICE_STATUS}" != "active" ];
|
||||
|
|
Loading…
Reference in a new issue