File: postinst

package info (click to toggle)
profile-sync-daemon 6.50-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: sh: 798; makefile: 74
file content (19 lines) | stat: -rw-r--r-- 763 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

if [ -f /etc/psd.conf ]; then
	mv /etc/psd.conf /etc/psd.conf.old
	echo 'ATTENTION: MAJOR CHANGES TO PSD WITH VERSION 6.00+'
	echo '-> 1. A global /etc/psd.conf is no longer used. $HOME/.config/psd/psd.conf will be'
	echo '->    created when psd is invoked the first time.'
	echo '-> 2. A system service is no longer used. A user service is provided and can be'
	echo '->    used like this:  systemctl --user start psd.service'
	echo '-> 3. Users wanting to use overlayfs mode MUST have sudo access with nopasswd to'
	echo '->    /usr/bin/psd-overlay-helper. See the man page for an example configured with visudo.'
fi

for i in $(users); do
	su $i -s /bin/bash -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user daemon-reload'
	return 0
done