0030_desktop_symbols does not need root for installing

This commit is contained in:
Daniel unbrot Pätzold
2026-05-07 15:47:14 +02:00
parent 253030228f
commit fef70d8d56
2 changed files with 8 additions and 15 deletions
@@ -1,15 +0,0 @@
#!/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
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env sh
# SPDX-FileCopyrightText: Daniel Pätzold
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Copies the included Desktop files to the Desktop
#
cp -n *.desktop $HOME/Schreibtisch