From 84527d63842b238579e9e82c45a2019d48666e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20unbrot=20P=C3=A4tzold?= Date: Fri, 8 May 2026 12:07:54 +0200 Subject: [PATCH] client_software cosmetic changes --- client_software/0010_kwallet/install.sh | 4 ++-- client_software/0010_kwallet/user_run.sh | 7 +++++++ client_software/0110_nextcloud_talk_app/install.sh | 8 +++++++- client_software/README.md | 12 +++++++----- 4 files changed, 23 insertions(+), 8 deletions(-) diff --git a/client_software/0010_kwallet/install.sh b/client_software/0010_kwallet/install.sh index 683f850..0e6bb42 100755 --- a/client_software/0010_kwallet/install.sh +++ b/client_software/0010_kwallet/install.sh @@ -18,13 +18,13 @@ echo "Setup KWallet Password- Service." #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." + echo "Error: Script requires root." exit 1 fi #Check Token if [ "${DAVTOKEN_USER}." == "." ]; then - echo "Error: Script cannot be executed standalone and needs a prereserved Environment. Quit." + echo "Error: Script cannot be executed standalone and needs a prereserved environment from sync_client_software.sh. Quit." exit 1 fi diff --git a/client_software/0010_kwallet/user_run.sh b/client_software/0010_kwallet/user_run.sh index d8ccbcd..0cc2ede 100755 --- a/client_software/0010_kwallet/user_run.sh +++ b/client_software/0010_kwallet/user_run.sh @@ -1,6 +1,13 @@ #!/bin/bash # Restart and test Kwallet- Service +#Check Token +if [ "${DAVTOKEN_USER}." == "." ]; then + echo "Error: Script cannot be executed standalone and needs a prereserved environment from sync_client_software.sh. Quit." + exit 1 +fi + + # Vars WALLETAPPID="sys_config_wallet_script" WALLETNAME="kdewallet" diff --git a/client_software/0110_nextcloud_talk_app/install.sh b/client_software/0110_nextcloud_talk_app/install.sh index f0127b8..136774b 100755 --- a/client_software/0110_nextcloud_talk_app/install.sh +++ b/client_software/0110_nextcloud_talk_app/install.sh @@ -7,7 +7,13 @@ #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." + echo "Error: Script requires root." + exit 1 +fi + +#Check Token +if [ "${DAVTOKEN_USER}." == "." ]; then + echo "Error: Script cannot be executed standalone and needs a prereserved environment from sync_client_software.sh. Quit." exit 1 fi diff --git a/client_software/README.md b/client_software/README.md index 20b2f74..b58d0ef 100644 --- a/client_software/README.md +++ b/client_software/README.md @@ -1,7 +1,9 @@ -Central Software installation script Repository -Must be executed from script ../sync_client_software.sh +# Pre installed software installation script repository -The install script here will check for the right environment, and execute the install.sh script in each directory. +Contains Packages to install and setup at user logon first. +Each package is in one directory and may include two scripts which will be called from user logon script: -Be sure to name the directories to get sorted the right way. -E.g. you may use all base installations with directories beginning with numbers < 0100 and all additional apps with numbers > 0100 +- install.sh - will be called with root- privileges to install software or other administrative tasks +- user_run.sh - will get executed after all admins scripts had been executed in user context to setup user configs ad data + +The execution will be sorted by directory name.