Skip to content

Commit

Permalink
Renamed otrs to znuny.
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasSchmitt committed Aug 1, 2023
1 parent 1685a02 commit 6f5f854
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
11 changes: 6 additions & 5 deletions bin/Cron.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
# --
# Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
# Copyright (C) 2021 Znuny GmbH, https://znuny.org/
# --
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -22,15 +23,15 @@ CRON_USER="$2"
# check if a common user try to use -u
if test -n "$CRON_USER"; then
if test $CURRENTUSER != root; then
echo "Run this script just as OTRS user! Or use 'Cron.sh {start|stop|restart} OTRS_USER' as root!"
echo "Run this script just as Znuny user! Or use 'Cron.sh {start|stop|restart} ZNUNY_USER' as root!"
exit 5
fi
fi

# check if the cron user is specified
if test -z "$CRON_USER"; then
if test $CURRENTUSER = root; then
echo "Run this script just as OTRS user! Or use 'Cron.sh {start|stop|restart} OTRS_USER' as root!"
echo "Run this script just as Znuny user! Or use 'Cron.sh {start|stop|restart} ZNUNY_USER' as root!"
exit 5
fi
fi
Expand All @@ -44,7 +45,7 @@ if test -e $OTRS_HOME/var/cron; then
OTRS_ROOT=$OTRS_HOME
else
echo "No cronjobs in $OTRS_HOME/var/cron found!";
echo " * Check the \$HOME (/etc/passwd) of the OTRS user. It must be the root dir of your OTRS system (e. g. /opt/znuny). ";
echo " * Check the \$HOME (/etc/passwd) of the Znuny user. It must be the root dir of your Znuny system (e. g. /opt/znuny). ";
exit 5;
fi

Expand Down Expand Up @@ -104,13 +105,13 @@ case "$1" in
*)
cat - <<HELP
Manage OTRS cron jobs.
Manage Znuny cron jobs.
Usage:
Cron.sh [action]
Arguments:
[action] - 'start', 'stop' or 'restart' - activate or deactivate OTRS cron jobs.
[action] - 'start', 'stop' or 'restart' - activate or deactivate Znuny cron jobs.
HELP

exit 1
Expand Down
2 changes: 1 addition & 1 deletion var/cron/znuny_daemon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
# --

# check OTRS daemon status
# check Znuny daemon status
*/5 * * * * $HOME/bin/znuny.Daemon.pl start >> /dev/null
3 changes: 2 additions & 1 deletion var/httpd/htdocs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="refresh" content="0; URL=/znuny/index.pl" />
<title>OTRS Redirect</title>
<title>Znuny Redirect</title>
</head>
<body>
</body>
Expand All @@ -12,6 +12,7 @@
<!--
index.html - redirect
Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
Copyright (C) 2021 Znuny GmbH, https://znuny.org/
This software comes with ABSOLUTELY NO WARRANTY. For details, see
the enclosed file COPYING for license information (GPL). If you
Expand Down

0 comments on commit 6f5f854

Please sign in to comment.