Installation scripts for SURF ResearchCloud catalog components
View the Project on GitHub UtrechtUniversity/researchcloud-items
Schedules so called “userspace application” scripts to run once (by each user), upon first login of the user.
bash or zsh shell.Bash/zsh scripts that need to run can be placed in directory /etc/runonce.d,
either directly or within a subdirectory. Upon the user’s first login,
the scripts will be run (only once) in sequence, sorted alphabetically by pathname.
Script(s) output (stdout and stderr) is saved in a file ~/.runonce.log.
The script /etc/profile.d/runonce.sh is triggered whenever a user starts a login
shell. The script checks whether the shell is also an interactive shell, and executes
the scripts in /etc/runonce.d/ if so.
On Desktop workspaces, /etc/profile.d/runonce.sh is triggered by a special .desktop
item placed in /etc/xdg/autostart, which is started every time a user logs in
to the desktop.
2021 Written by Ton Smeele (Utrecht University)