Moved local dir to /opt/sys_config

Improved error logging and added function handling calls with log and return values
Improved check for matching sudo rule
This commit is contained in:
Daniel Pätzold
2026-03-15 12:44:14 +01:00
parent 445c52fb27
commit 488f04d387
17 changed files with 307 additions and 83 deletions
@@ -0,0 +1,17 @@
[Desktop Entry]
Comment[de_DE]=
Comment=
Exec=/opt/sys_config/system_setup/mozilla_starter.sh firefox run
GenericName[de_DE]=
GenericName=
Icon=firefox
MimeType=
Name[de_DE]=Firefox
Name=Firefox
Path=/opt/sys_config/system_setup
StartupNotify=true
Terminal=true
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
@@ -0,0 +1,17 @@
[Desktop Entry]
Comment[de_DE]=
Comment=
Exec=/opt/sys_config/system_setup/mozilla_starter.sh thunderbird run
GenericName[de_DE]=
GenericName=
Icon=thunderbird
MimeType=
Name[de_DE]=Thunderbird
Name=Thunderbird
Path=/opt/sys_config/system_setup
StartupNotify=true
Terminal=true
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env sh
# SPDX-FileCopyrightText: Daniel Pätzold
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Sofwareinstallation script for Nextcloud Talk.
#
#Check for root
if [ "$EUID" -ne 0 ]; then
echo "Error: Script requires root. Please check if ${SCRIPTPATH}/${SCRIPTNAME} is in sudoers rules and if you are a member. And if executed via sudo."
exit 1
fi
cp -n *.desktop $SUDO_HOME/Schreibtisch
chown $SUDO_USER:$SUDO_USER $SUDO_HOME/Schreibtisch/*.desktop