mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-08 06:02:01 -03:30
nc-nextcloud.sh,install.sh,lamp.sh: Fix build process for debian 12
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com> Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
eadb23c049
commit
474c0007a1
1
.github/workflows/build-lxd.yml
vendored
1
.github/workflows/build-lxd.yml
vendored
@ -302,7 +302,6 @@ jobs:
|
||||
- name: Test LXD Image
|
||||
working-directory: ./tests
|
||||
run: |
|
||||
lxc exec ncp -- bash -c 'tail -f /var/log/ncp.log' |& awk '{ print "NCP::" $0 }' &
|
||||
"$LXC" exec ncp -- bash -c 'tail -f /var/log/ncp.log' |& awk '{ print "NCP::" $0 }' &
|
||||
python system_tests.py --non-interactive || {
|
||||
echo "System test failed!"
|
||||
|
||||
@ -29,8 +29,8 @@ install()
|
||||
$APTINSTALL lbzip2 iputils-ping jq wget
|
||||
# NOTE: php-smbclient in sury but not in Debian sources, we'll use the binary version
|
||||
# https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/external_storage/smb.html
|
||||
$APTINSTALL -t $RELEASE smbclient exfat-fuse exfat-utils # for external storage
|
||||
$APTINSTALL -t $RELEASE exfat-fuse exfat-utils # for external storage
|
||||
$APTINSTALL -t $RELEASE smbclient exfat-fuse exfatprogs # for external storage
|
||||
$APTINSTALL -t $RELEASE exfat-fuse exfatprogs # for external storage
|
||||
$APTINSTALL -t $RELEASE php${PHPVER}-exif # for gallery
|
||||
$APTINSTALL -t $RELEASE php${PHPVER}-bcmath # for LDAP
|
||||
$APTINSTALL -t $RELEASE php${PHPVER}-gmp # for bookmarks
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"nextcloud_version": "28.0.4",
|
||||
"php_version": "8.1",
|
||||
"release": "bullseye"
|
||||
"release": "bookworm"
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ type mysqld &>/dev/null && mysql -e 'use nextcloud' &>/dev/null && { echo "The '
|
||||
|
||||
# get dependencies
|
||||
apt-get update
|
||||
apt-get install --no-install-recommends -y git ca-certificates sudo lsb-release wget
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y git ca-certificates sudo lsb-release wget jq
|
||||
|
||||
# get install code
|
||||
if [[ "${CODE_DIR}" == "" ]]; then
|
||||
@ -63,6 +63,11 @@ cp etc/ncp.cfg /usr/local/etc/
|
||||
|
||||
cp -r etc/ncp-templates /usr/local/etc/
|
||||
install_app lamp.sh
|
||||
if [[ -d "/run/systemd/system" ]] && is_lxc
|
||||
then
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y systemd-resolved
|
||||
systemctl enable systemd-resolved
|
||||
fi
|
||||
install_app bin/ncp/CONFIG/nc-nextcloud.sh
|
||||
run_app_unsafe bin/ncp/CONFIG/nc-nextcloud.sh
|
||||
rm /usr/local/etc/ncp-config.d/nc-nextcloud.cfg # armbian overlay is ro
|
||||
|
||||
11
lamp.sh
11
lamp.sh
@ -37,13 +37,6 @@ install()
|
||||
apache2ctl -V || true
|
||||
|
||||
# Create systemd users to keep uids persistent between containers
|
||||
id -u systemd-resolve || {
|
||||
addgroup --quiet --system systemd-journal
|
||||
adduser --quiet -u 180 --system --group --no-create-home --home /run/systemd \
|
||||
--gecos "systemd Network Management" systemd-network
|
||||
adduser --quiet -u 181 --system --group --no-create-home --home /run/systemd \
|
||||
--gecos "systemd Resolver" systemd-resolve
|
||||
}
|
||||
install_with_shadow_workaround --no-install-recommends systemd
|
||||
$APTINSTALL -t $RELEASE php${PHPVER} php${PHPVER}-curl php${PHPVER}-gd php${PHPVER}-fpm php${PHPVER}-cli php${PHPVER}-opcache \
|
||||
php${PHPVER}-mbstring php${PHPVER}-xml php${PHPVER}-zip php${PHPVER}-fileinfo php${PHPVER}-ldap \
|
||||
@ -67,7 +60,7 @@ install()
|
||||
|
||||
install_template apache2/http2.conf.sh /etc/apache2/conf-available/http2.conf --defaults
|
||||
|
||||
# CONFIGURE PHP7
|
||||
# CONFIGURE PHP
|
||||
##########################################
|
||||
|
||||
install_template "php/opcache.ini.sh" "/etc/php/${PHPVER}/mods-available/opcache.ini" --defaults
|
||||
@ -97,7 +90,7 @@ install()
|
||||
# launch mariadb if not already running
|
||||
if ! [[ -f /run/mysqld/mysqld.pid ]]; then
|
||||
echo "Starting mariaDB"
|
||||
mysqld &
|
||||
sudo -u mysql mysqld &
|
||||
fi
|
||||
|
||||
# wait for mariadb
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user