-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version 22.7.0 based on ubuntu 22.04
- Loading branch information
1 parent
e58eb91
commit 2ecb60f
Showing
44 changed files
with
225 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* | ||
!post_install | ||
!pre_install | ||
!qemu* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ Thumbs.db | |
.project | ||
nbproject | ||
!.gitignore | ||
docker-persistence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash -eu | ||
#!/bin/sh -eu | ||
|
||
curl -qsSL "https://github.com/multiarch/qemu-user-static/releases/download/v5.2.0-2/qemu-arm-static.tar.gz" | tar -xz | ||
curl -qsSL "https://github.com/multiarch/qemu-user-static/releases/download/v5.2.0-2/qemu-aarch64-static.tar.gz" | tar -xz | ||
curl -qsSL "https://github.com/multiarch/qemu-user-static/releases/download/v6.1.0-8/qemu-arm-static.tar.gz" | tar -xz | ||
curl -qsSL "https://github.com/multiarch/qemu-user-static/releases/download/v6.1.0-8/qemu-aarch64-static.tar.gz" | tar -xz | ||
|
||
chmod 755 qemu-arm-static qemu-aarch64-static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash -eu | ||
#!/bin/sh -eu | ||
|
||
docker run --rm --privileged multiarch/qemu-user-static:register --reset |
3 changes: 2 additions & 1 deletion
3
...ll/etc/my_init.d/librenms_105_environment → ...ll/etc/my_init.d/librenms_000_environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh -e | ||
|
||
# Create a new librenms user and remap it to the given UID | ||
if [ ! -z "$PUID" ]; then | ||
if [ -z "$PGID" ]; then | ||
PGID=${PUID} | ||
fi | ||
|
||
deluser librenms | ||
delgroup www-data librenms | ||
delgroup librenms | ||
groupadd --gid ${PGID} librenms | ||
usermod --append --groups librenms www-data | ||
useradd librenms --gid librenms --home-dir /opt/librenms --system --shell /bin/bash --uid ${PUID} | ||
fi | ||
|
||
# avoids problems when mounting volumes via NFS | ||
set +e | ||
|
||
/usr/local/bin/set_permissions_basic | ||
|
||
exit 0 |
2 changes: 1 addition & 1 deletion
2
...install/etc/my_init.d/librenms_010_mounts → ...install/etc/my_init.d/librenms_002_mounts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash -eu | ||
#!/bin/sh -eu | ||
|
||
NAGIOS_PLUGINS_MOUNT=/mount/nagios_plugins | ||
TARGET_DIR=/usr/lib/nagios/plugins | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash -e | ||
#!/bin/sh -e | ||
|
||
LOCK_FILE=/var/lock/librenms_cron.lock | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash -e | ||
#!/bin/sh -e | ||
|
||
LOCK_FILE=/var/lock/librenms_ipv6.lock | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/bin/bash -e | ||
#!/bin/sh -e | ||
|
||
if [ -n "$TZ" ]; then | ||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
ln -snf "/usr/share/zoneinfo/${TZ}" /etc/localtime && echo "$TZ" > /etc/timezone | ||
|
||
if [ ! -f /etc/php/7.4/cli/conf.d/100-timezone.ini ]; then | ||
echo "date.timezone=$TZ" > /etc/php/7.4/cli/conf.d/100-timezone.ini | ||
if [ ! -f /etc/php/8.1/cli/conf.d/100-timezone.ini ]; then | ||
echo "date.timezone=${TZ}" > /etc/php/8.1/cli/conf.d/100-timezone.ini | ||
fi | ||
|
||
if [ ! -f /etc/php/7.4/fpm/conf.d/100-timezone.ini ]; then | ||
echo "date.timezone=$TZ" > /etc/php/7.4/fpm/conf.d/100-timezone.ini | ||
if [ ! -f /etc/php/8.1/fpm/conf.d/100-timezone.ini ]; then | ||
echo "date.timezone=${TZ}" > /etc/php/8.1/fpm/conf.d/100-timezone.ini | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh -eu | ||
|
||
configFile=/etc/php/8.1/fpm/pool.d/www.conf | ||
|
||
sed -i "s/PLACEHOLDER_MAX_WORKERS/${PHP_FPM_WORKERS_MAX}/g" "$configFile" | ||
sed -i "s/PLACEHOLDER_MIN_WORKERS/${PHP_FPM_WORKERS_MIN}/g" "$configFile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._init.d/librenms_107_create_default_files → ..._init.d/librenms_201_create_default_files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...stall/etc/my_init.d/librenms_109_services → .../my_init.d/librenms_220_optional_services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash -e | ||
#!/bin/sh -e | ||
|
||
LOCK_FILE=/var/lock/librenms_services.lock | ||
|
||
|
Oops, something went wrong.