Add user_run scripts for non root tasks

This commit is contained in:
Daniel Pätzold
2026-04-01 00:41:24 +02:00
parent 578c9861e8
commit 0e4eadbef3
3 changed files with 10 additions and 2 deletions
@@ -31,7 +31,5 @@ wget -q -P ${SCRIPTPATH} --timestamping https://github.com/nextcloud-releases/ta
#TODO: Check if Talk is installed - if not, exit 1
#Always start App
su -c "/usr/bin/nohup /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk --background >/dev/null 2>&1 &" $SUDO_USER
exit 0
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
# Start Nextcloud Talk in Background
/usr/bin/nohup flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk --background 1>/dev/null 2>&1 &
+7
View File
@@ -103,6 +103,13 @@ else
fi
echo ""
#Anyway run user scripts if existent
elog_add_command "${CLIENT_SOFTWARE_DST}/user_run.sh $2"
if [ $? -ne 0 ]; then
exit 1
fi
elog_add ""
#SYNC Firefox + Thunderbird Profile
${SYSCONFIGPATH}/system_setup/mozilla_starter.sh firefox sync && ${SYSCONFIGPATH}/system_setup/mozilla_starter.sh thunderbird sync
elog_add "Successfully synced Mozilla profiles (log in another file)."