Skip to content

Commit ff15b2e

Browse files
committed
dietpi-software: implement ownCloud Infinite Scale
1 parent 7c0a149 commit ff15b2e

File tree

12 files changed

+144
-398
lines changed

12 files changed

+144
-398
lines changed

.conf/dps_47/apache.owncloud.conf

Lines changed: 0 additions & 11 deletions
This file was deleted.

.conf/dps_47/lighttpd.owncloud.conf

Lines changed: 0 additions & 28 deletions
This file was deleted.

.conf/dps_47/nginx.owncloud.conf

Lines changed: 0 additions & 82 deletions
This file was deleted.

.github/workflows/dietpi-software.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Process_Software()
143143
44) aSERVICES[i]='transmission-daemon' aTCP[i]='9091 51413' aUDP[i]='51413';;
144144
45) aSERVICES[i]='deluged deluge-web' aTCP[i]='8112 58846 6882';;
145145
46) aSERVICES[i]='qbittorrent' aTCP[i]='1340 6881';;
146-
47) aCOMMANDS[i]='sudo -u www-data php /var/www/owncloud/occ status';;
146+
47) aSERVICES[i]='ocis' aTCP[i]='9200';;
147147
#48) Pydio
148148
49) aSERVICES[i]='gogs' aTCP[i]='3000';;
149149
50) aSERVICES[i]='syncthing' aTCP[i]='8384';;

.github/workflows/update_urls.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ aARCH[$software_id]='armhf arm64 amd64'
6464
aARCH_CHECK[$software_id]='riscv64'
6565
aREGEX[$software_id]='https://github.com/MediaBrowser/Emby.Releases/releases/download/.*/emby-server-deb_.*_\$arch.deb'
6666

67+
# ownCloud Infinite Scale
68+
software_id=47
69+
aCHECK[$software_id]='curl -sSfL '\''https://api.github.com/repos/owncloud/ocis/releases/latest'\'' | mawk -F\" "/^ *\"browser_download_url\": \".*\/ocis-[^\"\/]*-linux-$arch\"$/{print \$4}"'
70+
aARCH[$software_id]='arm arm64 amd64'
71+
aARCH_CHECK[$software_id]='riscv64'
72+
aREGEX[$software_id]='https://github.com/owncloud/ocis/releases/download/.*/ocis-.*-linux-\$arch'
73+
6774
# Gogs
6875
software_id=49
6976
aCHECK[$software_id]='curl -sSf '\''https://api.github.com/repos/gogs/gogs/releases/latest'\'' | mawk -F\" "/^ *\"browser_download_url\": \".*\/gogs_[^\"\/]*_linux_$arch.tar.gz\"$/{print \$4}"'

.update/patches

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,31 @@ Patch_9_20()
21612161
G_DIETPI-NOTIFY 2 'Scheduling Allo GUI update to latest version'
21622162
G_EXEC eval 'echo 160 >> /var/tmp/dietpi/dietpi-update_reinstalls'
21632163
fi
2164+
fi
2165+
2166+
# RPi firmware migration: Do after all other patches
2167+
if (( $G_HW_MODEL < 10 )) && ! dpkg-query -s 'raspi-firmware' &> /dev/null
2168+
then
2169+
G_WHIP_MSG '[ INFO ] Raspberry Pi kernel/firmware migration will be applied
2170+
\nA migration to the new RPi Linux 6.12+ kernel and firmware stack will be applied. Please report any error at our forum or GitHub. The DietPi update will finish in any case, and you can retry the migration with:
2171+
$ /boot/dietpi/func/dietpi-set_software rpi_firmware_migration'
2172+
G_EXEC_OUTPUT=1 G_EXEC /boot/dietpi/func/dietpi-set_software rpi_firmware_migration
2173+
fi
2174+
}
21642175

2176+
Patch_10_0()
2177+
{
2178+
# dietpi.txt migration
2179+
if grep -q '^[[:blank:]]*SOFTWARE_OWNCLOUD_NEXTCLOUD_USERNAME=' /boot/dietpi.txt
2180+
then
2181+
G_EXEC sed --follow-symlinks -i '/^[[:blank:]]*SOFTWARE_NEXTCLOUD_USERNAME=/d' /boot/dietpi.txt
2182+
G_EXEC sed --follow-symlinks -i 's/SOFTWARE_OWNCLOUD_NEXTCLOUD_USERNAME=/SOFTWARE_NEXTCLOUD_USERNAME=/' /boot/dietpi.txt
2183+
fi
2184+
G_EXEC sed --follow-symlinks -i '/^[[:blank:]]*SOFTWARE_OWNCLOUD_DATADIR=/d' /boot/dietpi.txt
2185+
2186+
# Software updates, migrations and patches
2187+
if [[ -f '/boot/dietpi/.installed' ]]
2188+
then
21652189
# Pi-hole v6 migration
21662190
# - /etc/pihole/pihole.toml indicates that Pi-hole has been upgraded to v6 already.
21672191
# - The /var/www/pihole symlink indicates that an instance installed via dietpi-software has not been migrated yet.
@@ -2216,15 +2240,6 @@ Patch_9_20()
22162240
fi
22172241
fi
22182242
fi
2219-
2220-
# RPi firmware migration: Do after all other patches
2221-
if (( $G_HW_MODEL < 10 )) && ! dpkg-query -s 'raspi-firmware' &> /dev/null
2222-
then
2223-
G_WHIP_MSG '[ INFO ] Raspberry Pi kernel/firmware migration will be applied
2224-
\nA migration to the new RPi Linux 6.12+ kernel and firmware stack will be applied. Please report any error at our forum or GitHub. The DietPi update will finish in any case, and you can retry the migration with:
2225-
$ /boot/dietpi/func/dietpi-set_software rpi_firmware_migration'
2226-
G_EXEC_OUTPUT=1 G_EXEC /boot/dietpi/func/dietpi-set_software rpi_firmware_migration
2227-
fi
22282243
}
22292244

22302245
# Failsafe: Error out on invalid version

CHANGELOG.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ Breaking:
55
- The minimum Debian version supported by our scripts has been raised to Debian 12 Bookworm. Debian 11 Bullseye systems will be migrated to a dedicated branch automatically. We highly recommend to upgrade affected systems to Debian 12 Bookworm, following our guide: https://dietpi.com/blog/?p=3128. Once the upgrade has been done, the update to DietPi v10 will be offered on next update check or when running "dietpi-update".
66
- The minimum DietPi version to support direct updates to DietPi v10 from has been raised to v8.0. Older systems will go through a two-stage process, being upgraded to DietPi v9.20 on a separate branch, and afterwards further to DietPi v10 via master branch, if the Debian version requirement is met as well.
77

8+
New software:
9+
- ownCloud Infinite Scale | This successor of the classic ownCloud file sync and share platform has been added to our software catalogue.
10+
811
Removed SBC support:
912
- The removed of support for Debian 11 Bullseye implies the removal of support for the Sparky SBC, NanoPi M2/T2/Fire2, and NanoPi M3/T3/Fire3 families. Images for those SBCs ship with very old vendor Linux versions, which cannot run Debian 13 Trixie. They already had issues which Debian 12 Bookworm, which is the reason we provided only Bullseye images for them. If anyone finds functional mainline-based Linux and U-Boot sources, or is able to rebase the needed drivers and device trees, we are happy to re-implement support.
1013

1114
Removed software:
12-
- The removal of support for Debian 11 Bullseye implies the removal of the RPi Cam Web Interface software option. This depends on the legacy MMAL camera interface, while the related userspace libraries have been removed from the Bookworm packages of the Raspberry Pi repository. Maintenance for this project stalled since several years, and there is no active fork. We are focusing on motionEye and mjpg-streamer as generic camera and motion detection web interfaces, which both support libcamera indirectly via libcamerify, and have native support in view.
15+
- The removal of support for Debian 11 Bullseye implies the removal of the RPi Cam Web Interface software option. It depends on the legacy MMAL camera interface, while the related userspace libraries have been removed from the Bookworm packages of the Raspberry Pi repository. Maintenance for this project stalled since several years, and there is no active fork. We are focusing on motionEye and mjpg-streamer as generic camera and motion detection web interfaces, which both support libcamera indirectly via libcamerify, and have native support in view.
16+
- The removal of support for Debian 11 Bullseye implies the removal of the classic ownCloud software option. It does not support PHP 8.x, and development stalled. Instead we integrated support for the actively developed ownCloud Infinite Scale (see above), and a migration to Nextcloud is alternatively possible.
1317

1418
Enhancement:
1519

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Links to hardware and software manufacturers, sources and build instructions use
227227
- [ruTorrent](https://github.com/Novik/ruTorrent)
228228
- [qBittorrent](https://github.com/qbittorrent/qBittorrent)
229229
- [Nextcloud](https://github.com/nextcloud/server)
230-
- [ownCloud](https://github.com/owncloud/core)
230+
- [ownCloud Infinite Scale](https://github.com/owncloud/ocis)
231231
- [Syncthing](https://github.com/syncthing/syncthing)
232232
- [ReadyMedia](https://sourceforge.net/p/minidlna/git/ci/master/tree/)
233233
- [MPD](https://github.com/MusicPlayerDaemon/MPD)

dietpi.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,10 @@ SOFTWARE_VNCSERVER_DEPTH=16
267267
SOFTWARE_VNCSERVER_DISPLAY_INDEX=1
268268
SOFTWARE_VNCSERVER_SHARE_DESKTOP=0
269269

270-
# ownCloud/Nextcloud
271-
# - Optional username for admin account, the default is 'admin', applied during install
272-
SOFTWARE_OWNCLOUD_NEXTCLOUD_USERNAME=admin
273-
# - Optional data directory, default is "/mnt/dietpi_userdata/owncloud_data" respectively "/mnt/dietpi_userdata/nextcloud_data", applied during install
274-
SOFTWARE_OWNCLOUD_DATADIR=/mnt/dietpi_userdata/owncloud_data
270+
# Nextcloud
271+
# - Optional username for admin account, the default is "admin", applied during install
272+
SOFTWARE_NEXTCLOUD_USERNAME=admin
273+
# - Optional data directory, default is "/mnt/dietpi_userdata/nextcloud_data", applied during install
275274
SOFTWARE_NEXTCLOUD_DATADIR=/mnt/dietpi_userdata/nextcloud_data
276275

277276
# Synapse

dietpi/dietpi-services

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ _EOF_
209209
'forgejo'
210210
'vaultwarden'
211211
'filebrowser'
212+
'ocis'
212213

213214
# - Emulation/Gaming
214215
'mineos'

0 commit comments

Comments
 (0)