diff --git a/install/librenms-install.sh b/install/librenms-install.sh index ebefb63c..53b10413 100644 --- a/install/librenms-install.sh +++ b/install/librenms-install.sh @@ -29,6 +29,9 @@ msg_info "Installing Dependencies" # system user is required $STD useradd librenms -d /opt/librenms -M -r + + # set timezone + $STD timedatectl set-timezone Etc/UTC msg_ok "Installed Dependencies" @@ -39,6 +42,9 @@ msg_info "php config" -e "s|^listen = /run/php/php8.2-fpm.sock|listen = /run/php/librenms.sock|" \ -e "s|^user = www-data|user = librenms|" \ -e "s|^group = www-data|group = librenms|" /etc/php/8.2/fpm/pool.d/librenms.conf + + # set timezone + sed -i 's/^;date\.timezone =/date.timezone = Etc\/UTC/' /etc/php/8.2/fpm/php.ini systemctl restart php8.2-fpm msg_ok "php config" @@ -56,8 +62,8 @@ msg_info "download librenms" # scheduler cp /opt/librenms/dist/librenms-scheduler.service /opt/librenms/dist/librenms-scheduler.timer /etc/systemd/system/ - systemctl enable librenms-scheduler.timer - systemctl start librenms-scheduler.timer + $STD systemctl enable librenms-scheduler.timer + $STD systemctl start librenms-scheduler.timer msg_ok "download librenms" diff --git a/misc/build.func b/misc/build.func index 9d979691..68110ef3 100644 --- a/misc/build.func +++ b/misc/build.func @@ -950,9 +950,9 @@ build_container() { TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null if [ "$var_os" == "alpine" ]; then - export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/svennd/ProxmoxVE/librenms/misc/alpine-install.func)" + export FUNCTIONS_FILE_PATH="$(curl -s https://github.com/community-scripts/ProxmoxVE/main/misc/alpine-install.func)" else - export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/svennd/ProxmoxVE/librenms/misc/install.func)" + export FUNCTIONS_FILE_PATH="$(curl -s https://github.com/community-scripts/ProxmoxVE/main/misc/install.func)" fi export CACHER="$APT_CACHER" export CACHER_IP="$APT_CACHER_IP" @@ -983,7 +983,7 @@ build_container() { $PW " # This executes create_lxc.sh and creates the container and .conf file - bash -c "$(wget -qLO - https://raw.githubusercontent.com/svennd/ProxmoxVE/librenms/ct/create_lxc.sh)" || exit + bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/main/ct/create_lxc.sh)" || exit LXC_CONFIG=/etc/pve/lxc/${CTID}.conf if [ "$CT_TYPE" == "0" ]; then @@ -1045,7 +1045,7 @@ http://dl-cdn.alpinelinux.org/alpine/latest-stable/community EOF' pct exec "$CTID" -- ash -c "apk add bash >/dev/null" fi - lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/svennd/ProxmoxVE/librenms/install/$var_install.sh)" || exit + lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/main/install/$var_install.sh)" || exit } @@ -1057,7 +1057,7 @@ description() { DESCRIPTION=$(cat < - Logo + Logo

${APP} LXC