Skip to content

Commit ac49d16

Browse files
committed
23 Release 3.2.5 - See CHANGELOG.md
1 parent 5fdcd5b commit ac49d16

File tree

6 files changed

+31
-26
lines changed

6 files changed

+31
-26
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"

.github/workflows/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: Prepare
1919
id: prep
@@ -63,17 +63,17 @@ jobs:
6363
echo ::set-output name=docker_image::${DOCKER_IMAGE}
6464
6565
- name: Set up QEMU
66-
uses: docker/setup-qemu-action@v1
66+
uses: docker/setup-qemu-action@v2
6767
with:
6868
platforms: all
6969

7070
- name: Set up Docker Buildx
7171
id: buildx
72-
uses: docker/setup-buildx-action@v1
72+
uses: docker/setup-buildx-action@v2
7373

7474
- name: Login to DockerHub
7575
if: github.event_name != 'pull_request'
76-
uses: docker/login-action@v1
76+
uses: docker/login-action@v2
7777
with:
7878
username: ${{ secrets.DOCKER_USERNAME }}
7979
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -101,7 +101,7 @@ jobs:
101101
fi
102102
103103
- name: Build
104-
uses: docker/build-push-action@v2
104+
uses: docker/build-push-action@v3
105105
with:
106106
builder: ${{ steps.buildx.outputs.name }}
107107
context: .

.github/workflows/manual.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: Prepare
1919
id: prep
@@ -63,17 +63,17 @@ jobs:
6363
echo ::set-output name=docker_image::${DOCKER_IMAGE}
6464
6565
- name: Set up QEMU
66-
uses: docker/setup-qemu-action@v1
66+
uses: docker/setup-qemu-action@v2
6767
with:
6868
platforms: all
6969

7070
- name: Set up Docker Buildx
7171
id: buildx
72-
uses: docker/setup-buildx-action@v1
72+
uses: docker/setup-buildx-action@v2
7373

7474
- name: Login to DockerHub
7575
if: github.event_name != 'pull_request'
76-
uses: docker/login-action@v1
76+
uses: docker/login-action@v2
7777
with:
7878
username: ${{ secrets.DOCKER_USERNAME }}
7979
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -101,7 +101,7 @@ jobs:
101101
fi
102102
103103
- name: Build
104-
uses: docker/build-push-action@v2
104+
uses: docker/build-push-action@v3
105105
with:
106106
builder: ${{ steps.buildx.outputs.name }}
107107
context: .

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 3.2.5 2022-05-11 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Tidying up some variables and removing old functions unnecessary
5+
6+
17
## 3.2.4 2022-05-06 <dave at tiredofit dot ca>
28

39
### Added

install/etc/cont-init.d/30-nextcloud

+7-15
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,18 @@ mkdir -p "${TEMP_DIRECTORY}"
148148
chown -R "${NGINX_USER}":"${NGINX_GROUP}" "${TEMP_DIRECTORY}"
149149

150150
### Database Check
151-
case "$DB_TYPE" in
152-
"mysql" | "mariadb" | "MYSQL" | "MARIADB" )
151+
case "${DB_TYPE,,}" in
152+
"mysql" | "mariadb" )
153153
DB_PORT=${DB_PORT:-3306}
154-
155154
sanity_db mariadb
156155
db_ready mariadb
157-
158156
install_options="--database=mysql --database-host=${DB_HOST} --database-name=${DB_NAME} --database-user=${DB_USER} --database-pass=${DB_PASS} --database-table-space=${DB_PREFIX} --database-port=${DB_PORT}"
159157
;;
160-
"sqlite" | "SQLITE" | "sqlite3" | "SQLITE3" )
158+
sqlite* )
161159
DB_TYPE="sqlite3"
162160
install_options="--database-name $SQLITE_DATABASE"
163161
;;
164-
"postgres" | "postgresql" | "POSTGRES" | "POSTGRESQL" )
162+
postgres* )
165163
DB_PORT=${DB_PORT:-5432}
166164
sanity_db
167165
db_ready postgres
@@ -173,17 +171,11 @@ case "$DB_TYPE" in
173171
;;
174172
esac
175173

176-
### Sudo Hack for entering inside the container
177-
echo "alias occ='sudo -u ${NGINX_USER} php ${NGINX_WEBROOT}/occ'" > /root/.bashrc
178-
179-
mkdir -p "${NGINX_WEBROOT}"
180-
chown -R "${NGINX_USER}":"${NGINX_GROUP}" "${NGINX_WEBROOT}"
181-
182174
installed_version="0.0.0~unknown"
183-
175+
mkdir -p "${NGINX_WEBROOT}"
184176
rsync -a --delete --exclude /config/ --exclude /data/ --exclude /custom-apps/ --exclude /themes/ /assets/nextcloud/ "${NGINX_WEBROOT}"/
185177
mkdir -p "${NGINX_WEBROOT}"/data "${NGINX_WEBROOT}"/config "${NGINX_WEBROOT}"/themes "${NGINX_WEBROOT}"/custom-apps
186-
chown -R nginx "${NGINX_WEBROOT}"
178+
chown -R "${NGINX_USER}":"${NGINX_GROUP}" "${NGINX_WEBROOT}"
187179

188180
for dir in config themes; do
189181
if directory_empty "${NGINX_WEBROOT}"/"$dir"; then
@@ -209,7 +201,7 @@ if version_greater "$installed_version" "${NEXTCLOUD_VERSION}"; then
209201
exit 1
210202
fi
211203

212-
if [ "$ENABLE_AUTO_UPGRADE" = "TRUE" ]; then
204+
if var_true "${ENABLE_AUTO_UPGRADE}" ; then
213205
if version_greater "${NEXTCLOUD_VERSION}" "$installed_version"; then
214206
if [ "$installed_version" != "0.0.0~unknown" ]; then
215207
silent sudo -u "${NGINX_USER}" php "${NGINX_WEBROOT}"/occ app:list > /tmp/list_before

install/etc/services.available/30-nextcloud/run

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ case "$apkArch" in
1616
esac
1717

1818
print_start "Starting Nextcloud High Performance Files Backend"
19-
sudo -u nginx /opt/nextcloud_files_backend/bin/${FBArch}/notify_push --port ${FILES_BACKEND_PORT} /www/nextcloud/config/config.php
19+
sudo -u ${NGINX_USER} /opt/nextcloud_files_backend/bin/${FBArch}/notify_push --port ${FILES_BACKEND_PORT} /www/nextcloud/config/config.php

0 commit comments

Comments
 (0)