Skip to content

Commit 3792d1d

Browse files
authored
Merge branch 'master' into desec-apps
2 parents 1d61047 + f1ff45f commit 3792d1d

File tree

7 files changed

+55
-21
lines changed

7 files changed

+55
-21
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ PR's are more than welcome. Happy Nextclouding!
1010
### Different versions
1111
If you run Hyper-V or want 500 GB, 1 TB or 2 TB VM you can download it from [T&M Hansson IT's shop](https://shop.hanssonit.se/product-category/virtual-machine/nextcloud/).
1212

13+
## 26.0.0
14+
15+
### Full changelog:
16+
- [VM](https://github.com/nextcloud/vm/releases/tag/26.0.0)
17+
- [Nextcloud](https://nextcloud.com/changelog/#latest26)
18+
1319
## 25.0.2
1420

1521
### Small changelog:

apps/talk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
true
66
SCRIPT_NAME="Nextcloud Talk"
7-
SCRIPT_EXPLAINER="This script installs Nextcloud Talk and also offers the possibility \
8-
to install the so-called High-Performance-Backend, which makes it possible to host more video calls than it would be with the standard Talk app. \
7+
SCRIPT_EXPLAINER="This script installs Nextcloud Talk whcih is a replacement for Teams/Skype and similar.\
8+
You will also be offered the possibility to install the so-called High-Performance-Backend, which makes it possible to host more video calls than it would be with the standard Talk app. \
99
It's called 'Talk Signaling' and you will be offered to install it as part two of this script."
1010
# shellcheck source=lib.sh
1111
source /var/scripts/fetch_lib.sh

lib.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,19 +761,31 @@ fi
761761
check_nextcloud_https() {
762762
if ! nextcloud_occ_no_check config:system:get overwrite.cli.url | grep -q "https"
763763
then
764-
msg_box "Sorry, but Nextcloud needs to be run on HTTPS.
764+
if [ "$1" == 'Collabora (Docker)' ] || [ "$1" == 'OnlyOffice (Docker)' ]
765+
then
766+
msg_box "Sorry, but Nextcloud needs to be run on HTTPS.
765767
You can easily activate TLS (HTTPS) by running the Let's Encrypt script.
766768
More info here: https://bit.ly/37wRCin
767769
768770
To run this script again, just exectue 'sudo bash $SCRIPTS/menu.sh' and choose:
769771
Additional Apps --> Documentserver --> $1."
770-
exit
772+
exit
773+
else
774+
msg_box "Sorry, but Nextcloud needs to be run on HTTPS.
775+
You can easily activate TLS (HTTPS) by running the Let's Encrypt script.
776+
More info here: https://bit.ly/37wRCin
777+
778+
To run this script again, just exectue 'sudo bash $SCRIPTS/menu.sh' and choose:
779+
Additional Apps --> $1."
780+
exit
781+
fi
771782
fi
772783
}
773784

774785
restart_webserver() {
775786
# https://github.com/nextcloud/vm/issues/2358
776787
sleep 2
788+
print_text_in_color "$ICyan" "Restarting Apache2 and PHP-FPM..."
777789
check_command systemctl restart apache2.service
778790
check_php
779791
if is_this_installed php"$PHPVER"-fpm

menu/additional_apps.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ choice=$(whiptail --title "$TITLE" --checklist \
3939
"Which apps do you want to install?\n\nAutomatically configure and install selected apps
4040
$CHECKLIST_GUIDE\n\n$RUN_LATER_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
4141
"Documentserver" "(OnlyOffice or Collabora - Docker or Integrated)" OFF \
42-
"Bitwarden" "(External password manager)" OFF \
42+
"Bitwarden" "(External password manager) [4GB RAM]" OFF \
4343
"Fail2ban " "(Extra Bruteforce protection)" "$STARTUP_SWITCH" \
44-
"Recognize" "(Use [local] AI on your photos in Nextcloud)" OFF \
45-
"Imaginary" "(Generate image previews for Nextcloud) [4GB RAM + 4 CPU]" "OFF" \
44+
"Recognize" "(Use [local] AI on your photos in Nextcloud) [8GB RAM]" OFF \
45+
"Imaginary" "(Generate image previews for Nextcloud) [4GB RAM]" "$STARTUP_SWITCH" \
4646
"Webmin" "(Server GUI like Cpanel)" OFF \
4747
"Talk" "(Video calls and chat for Nextcloud - requires port 3478)" "$STARTUP_SWITCH" \
4848
"SMB-mount" "(Mount SMB-shares from your local network)" OFF \

nextcloud-startup-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ else
369369
then
370370
msg_box "The new password for the current CLI user in Ubuntu ($UNIXUSER) is now set to: $UNIX_PASSWORD
371371
372-
This is used when you login to the Ubuntu CLI."
372+
This is used when you login to the Ubuntu CLI."
373373
fi
374374
fi
375375
unset UNIX_PASSWORD

nextcloud_install_production.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,6 @@ $CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
920920
"Deck" "" ON \
921921
"Collectives" "" ON \
922922
"Suspicios Login detetion" "" ON \
923-
"Imaginary" "" ON \
924923
"IssueTemplate" "" OFF \
925924
"Group-Folders" "" OFF 3>&1 1>&2 2>&3)
926925
fi
@@ -965,9 +964,6 @@ case "$choice" in
965964
*"Suspicios Login detetion"*)
966965
install_and_enable_app suspicios_login
967966
;;&
968-
*"Imaginary"*)
969-
run_script APP imaginary
970-
;;&
971967
*"Group-Folders"*)
972968
install_and_enable_app groupfolders
973969
;;&

nextcloud_update.sh

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ is_process_running dpkg
3535
# Automatically restart services (Ubuntu 22.04)
3636
if ! version 16.04.10 "$DISTRO" 20.04.10
3737
then
38-
if ! grep -r "{restart} = 'a'" /etc/needrestart/needrestart.conf
38+
if ! grep -rq "{restart} = 'a'" /etc/needrestart/needrestart.conf
3939
then
4040
# Restart mode: (l)ist only, (i)nteractive or (a)utomatically.
41-
sed -i "s|#\$nrconf{restart} = .*|\$nrconf{restart} = 'a';|g" /etc/needrestart/needrestart.conf
41+
sed -i "s|#\$nrconf{restart} =.*|\$nrconf{restart} = 'a'\;|g" /etc/needrestart/needrestart.conf
4242
fi
4343
fi
4444

@@ -906,15 +906,35 @@ fi
906906
if is_this_installed postgresql-common
907907
then
908908
cd /tmp
909-
if sudo -u postgres psql -c "SELECT 1 AS result FROM pg_database WHERE datname='$NCDB'" | grep "1 row" > /dev/null
909+
# Test connection to PostgreSQL
910+
if ! sudo -u postgres psql -c "\q"
910911
then
911-
print_text_in_color "$ICyan" "Doing pgdump of $NCDB..."
912-
check_command sudo -u postgres pg_dump -Fc "$NCDB" > "$BACKUP"/nextclouddb.dump
913-
# Import:
914-
# sudo -u postgres pg_restore --verbose --clean --no-acl --no-owner -h localhost -U ncadmin -d nextcloud_db "$BACKUP"/nextclouddb.dump
912+
# If it fails, trust the 'postgres' user to be able to perform backup
913+
rsync -a /etc/postgresql/*/main/pg_hba.conf "$BACKUP"/pg_hba.conf_BACKUP
914+
sed -i "s|local all postgres .*|local all postgres trust|g" /etc/postgresql/*/main/pg_hba.conf
915+
systemctl restart postgresql.service
916+
if sudo -u postgres psql -c "SELECT 1 AS result FROM pg_database WHERE datname='$NCDB'" | grep "1 row" > /dev/null
917+
then
918+
print_text_in_color "$ICyan" "Doing pgdump of $NCDB..."
919+
check_command sudo -u postgres pg_dump -Fc "$NCDB" > "$BACKUP"/nextclouddb.dump
920+
# Import:
921+
# sudo -u postgres pg_restore --verbose --clean --no-acl --no-owner -h localhost -U ncadmin -d nextcloud_db "$BACKUP"/nextclouddb.dump
922+
else
923+
print_text_in_color "$ICyan" "Doing pgdump of all databases..."
924+
check_command sudo -u postgres pg_dumpall > "$BACKUP"/alldatabases.dump
925+
fi
915926
else
916-
print_text_in_color "$ICyan" "Doing pgdump of all databases..."
917-
check_command sudo -u postgres pg_dumpall > "$BACKUP"/alldatabases.dump
927+
# If there's no issues, then continue as normal
928+
if sudo -u postgres psql -c "SELECT 1 AS result FROM pg_database WHERE datname='$NCDB'" | grep "1 row" > /dev/null
929+
then
930+
print_text_in_color "$ICyan" "Doing pgdump of $NCDB..."
931+
check_command sudo -u postgres pg_dump -Fc "$NCDB" > "$BACKUP"/nextclouddb.dump
932+
# Import:
933+
# sudo -u postgres pg_restore --verbose --clean --no-acl --no-owner -h localhost -U ncadmin -d nextcloud_db "$BACKUP"/nextclouddb.dump
934+
else
935+
print_text_in_color "$ICyan" "Doing pgdump of all databases..."
936+
check_command sudo -u postgres pg_dumpall > "$BACKUP"/alldatabases.dump
937+
fi
918938
fi
919939
fi
920940

0 commit comments

Comments
 (0)