mirror of
https://github.com/ublue-os/forge.git
synced 2025-04-21 14:03:46 +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:
|
volumes:
|
||||||
- name: podman-socket
|
- name: podman-socket
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /run/user/${FORGE_HOST_UID}/podman/podman.sock
|
path: ${FORGE_PODMAN_SOCKET_PATH}
|
||||||
type: Socket
|
type: Socket
|
||||||
- name: ublue-os_forge-certs-pvc
|
- name: ublue-os_forge-certs-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
26
forge.sh
26
forge.sh
|
@ -2,7 +2,6 @@
|
||||||
# Variables
|
# Variables
|
||||||
export FORGE_DOMAIN_NAME="ublue.local"
|
export FORGE_DOMAIN_NAME="ublue.local"
|
||||||
export FORGE_NETWORK_NAME="ublue-os_forge"
|
export FORGE_NETWORK_NAME="ublue-os_forge"
|
||||||
export FORGE_HOST_UID=$(id -u)
|
|
||||||
export FORGE_POD_CONFIGURATION="forge-pod.yml"
|
export FORGE_POD_CONFIGURATION="forge-pod.yml"
|
||||||
export FORGE_POD_NAME_PRE_AMBLE="ublue-os_forge-"
|
export FORGE_POD_NAME_PRE_AMBLE="ublue-os_forge-"
|
||||||
export FORGE_POD_NAME_REVERSE_PROXY=${FORGE_POD_NAME_PRE_AMBLE}rvproxy
|
export FORGE_POD_NAME_REVERSE_PROXY=${FORGE_POD_NAME_PRE_AMBLE}rvproxy
|
||||||
|
@ -91,6 +90,18 @@ function create_network {
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_prerequisites {
|
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}"
|
echo -e "${YELLOW}Checking podman installation${ENDCOLOR}"
|
||||||
PODMAN_PATH=$(which podman 2>/dev/null || echo 'FALSE')
|
PODMAN_PATH=$(which podman 2>/dev/null || echo 'FALSE')
|
||||||
if [ "$PODMAN_PATH" == "FALSE" ];
|
if [ "$PODMAN_PATH" == "FALSE" ];
|
||||||
|
@ -112,6 +123,7 @@ function check_prerequisites {
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo -e "${GREEN}podman socket is ${PODMAN_SERVICE_STATUS}${ENDCOLOR}"
|
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 ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
echo -e "${YELLOW}Checking net.ipv4.ip_unprivileged_port_start${ENDCOLOR}"
|
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 -e "${GREEN}net.ipv4.ip_unprivileged_port_start is ${NET_IPV4_UNPRIV_PORT_START}${ENDCOLOR}"
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
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}"
|
echo -e "${YELLOW}Checking sshd service${ENDCOLOR}"
|
||||||
SSH_SERVICE_STATUS="$(systemctl is-active sshd)"
|
SSH_SERVICE_STATUS="$(systemctl is-active sshd)"
|
||||||
if [ "${SSH_SERVICE_STATUS}" != "active" ];
|
if [ "${SSH_SERVICE_STATUS}" != "active" ];
|
||||||
|
|
Loading…
Reference in a new issue