|
30 |
# /usr/share/common-licenses/AGPL-3; if not, see |
30 |
# /usr/share/common-licenses/AGPL-3; if not, see |
31 |
# <http://www.gnu.org/licenses/>. |
31 |
# <http://www.gnu.org/licenses/>. |
32 |
|
32 |
|
33 |
if [ ! -e /var/log/univention/server_password_change.log ] ; then |
33 |
. /usr/share/univention-lib/all.sh |
34 |
touch /var/log/univention/server_password_change.log |
34 |
create_logfile_if_missing /var/log/univention/server_password_change.log "root:adm" 640 |
35 |
chown root:adm /var/log/univention/server_password_change.log |
|
|
36 |
chmod 640 /var/log/univention/server_password_change.log |
37 |
fi |
38 |
|
35 |
|
39 |
exec 3>>/var/log/univention/server_password_change.log |
36 |
exec 3>>/var/log/univention/server_password_change.log |
40 |
echo "Starting server password change ($(date))" >&3 |
37 |
echo "Starting server password change ($(date))" >&3 |
Lines 46-53
FAIL () { # log error message to log file and std-err, then fail
|
Link Here
|
---|
|
46 |
|
43 |
|
47 |
eval "$(/usr/sbin/univention-config-registry shell)" |
44 |
eval "$(/usr/sbin/univention-config-registry shell)" |
48 |
|
45 |
|
49 |
. /usr/share/univention-lib/all.sh |
|
|
50 |
|
51 |
# 0 -> set to true |
46 |
# 0 -> set to true |
52 |
# 1 -> set to false |
47 |
# 1 -> set to false |
53 |
# 2 -> empty |
48 |
# 2 -> empty |