introduce whiteboard app in master (#1841)
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
Родитель
9c6045378e
Коммит
2e381bc67b
|
@ -48,7 +48,7 @@ else
|
|||
# reset the cronjob
|
||||
crontab -u www-data -l | grep -v 'preview:pre-generate' | crontab -u www-data -
|
||||
# Remove apps
|
||||
APPS=(ffmpeg php-imagick libmagickcore-6.q16-3-extra)
|
||||
APPS=(php-imagick libmagickcore-6.q16-3-extra)
|
||||
for app in "${APPS[@]}"
|
||||
do
|
||||
if is_this_installed "$app"
|
||||
|
@ -56,6 +56,10 @@ else
|
|||
apt purge "$app" -y
|
||||
fi
|
||||
done
|
||||
if is_this_installed ffmpeg && ! is_app_installed integration_whiteboard
|
||||
then
|
||||
apt purge ffmpeg -y
|
||||
fi
|
||||
apt autoremove -y
|
||||
# Show successful uninstall if applicable
|
||||
removal_popup "$SCRIPT_NAME"
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
#!/bin/bash
|
||||
|
||||
# T&M Hansson IT AB © - 2021, https://www.hanssonit.se/
|
||||
# Copyright © 2021 Simon Lindner (https://github.com/szaimen)
|
||||
|
||||
true
|
||||
SCRIPT_NAME="Whiteboard for Nextcloud"
|
||||
SCRIPT_EXPLAINER="$SCRIPT_NAME makes it possible to collaborative work on a whiteboard.
|
||||
It integrates Spacedeck whiteboard server and lets Nextcloud users create .whiteboard files which \
|
||||
can then be opened in the Files app and in Talk. Those files can be shared to other users or via \
|
||||
public links. Everyone having access with write permissions to such a file can edit it collaboratively."
|
||||
# shellcheck source=lib.sh
|
||||
source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
|
||||
|
||||
# Check for errors + debug code and abort if something isn't right
|
||||
# 1 = ON
|
||||
# 0 = OFF
|
||||
DEBUG=0
|
||||
debug_mode
|
||||
|
||||
# Check if root
|
||||
root_check
|
||||
|
||||
# NC 21 is required
|
||||
lowest_compatible_nc 21
|
||||
|
||||
# Check if whiteboard is already installed
|
||||
if ! is_app_installed integration_whiteboard
|
||||
then
|
||||
# Ask for installing
|
||||
install_popup "$SCRIPT_NAME"
|
||||
else
|
||||
# Ask for removal or reinstallation
|
||||
reinstall_remove_menu "$SCRIPT_NAME"
|
||||
# Removal
|
||||
nextcloud_occ app:remove integration_whiteboard
|
||||
for packet in graphicsmagick ghostscript
|
||||
do
|
||||
if is_this_installed "$packet"
|
||||
then
|
||||
apt purge "$packet" -y
|
||||
fi
|
||||
done
|
||||
if is_this_installed ffmpeg && ! nextcloud_occ config:system:get enabledPreviewProviders | grep -q "Movie"
|
||||
then
|
||||
apt purge ffmpeg -y
|
||||
fi
|
||||
apt autoremove -y
|
||||
# Show successful uninstall if applicable
|
||||
removal_popup "$SCRIPT_NAME"
|
||||
fi
|
||||
|
||||
# Install packages for whiteboard
|
||||
install_if_not graphicsmagick
|
||||
install_if_not ffmpeg
|
||||
install_if_not ghostscript
|
||||
|
||||
# Install whiteboard
|
||||
install_and_enable_app integration_whiteboard
|
||||
|
||||
if is_app_enabled integration_whiteboard
|
||||
then
|
||||
msg_box "$SCRIPT_NAME was successfully installed!"
|
||||
else
|
||||
msg_box "The installation wasn't successful. Please try again by running this script again!"
|
||||
fi
|
|
@ -53,6 +53,7 @@ $CHECKLIST_GUIDE\n\n$RUN_LATER_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
|||
"LDAP" "(Windows Active directory for Nextcloud)" OFF \
|
||||
"Talk" "(Video calls and chat for Nextcloud)" OFF \
|
||||
"Webmin" "(Server GUI like Cpanel)" "$STARTUP_SWITCH" \
|
||||
"Whiteboard" "(Whiteboard for Nextcloud)" OFF \
|
||||
"SMB-mount" "(Mount SMB-shares from your local network)" OFF 3>&1 1>&2 2>&3)
|
||||
|
||||
case "$choice" in
|
||||
|
@ -123,6 +124,10 @@ to finish the setup once this script is done." "$SUBTITLE"
|
|||
print_text_in_color "$ICyan" "Downloading the Webmin script..."
|
||||
run_script APP webmin
|
||||
;;&
|
||||
*"Whiteboard"*)
|
||||
print_text_in_color "$ICyan" "Downloading the Whiteboard script..."
|
||||
run_script APP whiteboard
|
||||
;;&
|
||||
*"SMB-mount"*)
|
||||
print_text_in_color "$ICyan" "Downloading the SMB-mount script..."
|
||||
run_script APP smbmount
|
||||
|
|
|
@ -602,7 +602,8 @@ msg_box "Restore completed!\n
|
|||
You can now simply reinstall all apps and addons that were installed on your server before!\n
|
||||
Those need to get installed (if they were installed on the old server before):
|
||||
Geoblocking, Disk Monitoring, Fail2Ban, ClamAV, SMTP Mail, DDclient, Activate TLS, OnlyOffice, Push Notifications for Nextcloud, \
|
||||
High-Performance backend for Nextcloud Talk, Extract for Nextcloud, Bitwarden RS, Pi-hole, PiVPN, Plex Media Server, Remotedesktop and Midnight Commander.\n
|
||||
High-Performance backend for Nextcloud Talk, Whiteboard for Nextcloud, Extract for Nextcloud, Bitwarden RS, Pi-hole, PiVPN, \
|
||||
Plex Media Server, Remotedesktop and Midnight Commander.\n
|
||||
Note:
|
||||
Bitwarden RS and Plex Media Server files were restored (if they were installed before) but the containers need to get \
|
||||
installed again to make them run with the restored files."
|
||||
|
|
Загрузка…
Ссылка в новой задаче