Skip to content

Commit

Permalink
Merge branch 'master' of github.com:webmin/usermin
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Jul 26, 2022
2 parents 9c7b13b + 7f8fedd commit 6c87694
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion makerpm.pl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
if [ "\$inetd" != "1" ]; then
/etc/usermin/restart >/dev/null 2>&1 </dev/null
if [ "\$?" != "0" ]; then
echo "error: Usermin server cannot be started. It is advised to start it manually\n by running \\"/etc/usermin/restart-by-force-kill\\" command"
echo "error: Usermin server cannot be started. It is advised to start it manually\n by running \\"/etc/usermin/restart-by-force-kill\\" command"
fi
fi
cat >/etc/usermin/uninstall.sh <<EOFF
Expand All @@ -196,6 +196,7 @@
printf "\\n"
if [ "\\\$answer" = "y" ]; then
echo "Removing Usermin RPM .."
rm -f /usr/libexec/usermin/authentic-theme/manifest-*
rpm -e --nodeps usermin
systemctlcmd=\\\`which systemctl 2>/dev/null\\\`
if [ -x "\\\$systemctlcmd" ]; then
Expand Down Expand Up @@ -233,6 +234,7 @@
# RPM is being removed, and no new version of usermin
# has taken it's place. Stop the server
/etc/usermin/stop >/dev/null 2>&1 </dev/null
rm -f /usr/libexec/usermin/authentic-theme/manifest-*
fi
fi
/bin/true
Expand Down
5 changes: 5 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,11 @@ else
rm -f $config_dir/install-dir
fi

# Create manifest link for Authentic
if [ -r "$wadir/authentic-theme/postinstall-usermin.pl" ]; then
(cd "$wadir" ; WEBMIN_CONFIG="$config_dir" WEBMIN_VAR="$var_dir" PERLLIB="$wadir" LANG= "$wadir/authentic-theme/postinstall-usermin.pl") >/dev/null 2>&1 </dev/null
fi

# Run package-defined post-install script
if [ -r "$srcdir/setup-post.sh" ]; then
. "$srcdir/setup-post.sh"
Expand Down

0 comments on commit 6c87694

Please sign in to comment.