Server IP : 195.201.23.43 / Your IP : 3.145.210.4 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh killmodenone=0 justinstalled=1 if [ -d "/etc/usermin" ]; then justinstalled=0 fi inetd=`grep "^inetd=" /etc/usermin/miniserv.conf 2>/dev/null | sed -e 's/inetd=//g'` productpidfile=`grep "^pidfile=" /etc/usermin/miniserv.conf 2>/dev/null | sed -e 's/pidfile=//g'` if [ -r "$productpidfile" ]; then productrunning=1 fi if [ "$1" = "configure" ]; then # Upgrading the package, so stop the old Webmin properly if [ "$inetd" != "1" ]; then if [ -f "/etc/usermin/.pre-install" ]; then /etc/usermin/.pre-install >/dev/null 2>&1 </dev/null else killmodenone=1 fi fi fi cd /usr/share/usermin config_dir=/etc/usermin var_dir=/var/usermin perl=/usr/bin/perl autoos=1 if [ "$WEBMIN_PORT" != "" ]; then port=$WEBMIN_PORT else port=20000 fi login=root if [ -r /etc/shadow ]; then crypt=x else crypt=`grep "^root:" /etc/passwd | cut -f 2 -d :` fi host=`hostname` ssl=1 atboot=1 makeboot=1 nochown=1 autothird=1 noperlpath=1 nouninstall=1 nostart=1 nostop=1 nodepsmsg=1 export config_dir var_dir perl autoos port login crypt host ssl nochown autothird noperlpath nouninstall nostart allow atboot makeboot nostop nodepsmsg tempdir=/tmp/.webmin if [ ! -d $tempdir ]; then tempdir=/tmp fi ./setup.sh >$tempdir/usermin-setup.out 2>&1 if [ "usermin" = "webmin" ]; then grep sudo= /etc/usermin/miniserv.conf >/dev/null 2>&1 if [ "$?" = 1 ]; then # Allow sudo-based logins for Ubuntu echo sudo=1 >>/etc/usermin/miniserv.conf fi fi rm -f /var/lock/subsys/usermin if [ "$inetd" != "1" ]; then productucf=Webmin if [ "usermin" = "usermin" ]; then productucf=Usermin fi if [ "$justinstalled" = "1" ]; then /etc/usermin/start >/dev/null 2>&1 </dev/null if [ "$?" != "0" ]; then echo "E: ${productucf} server cannot be started. It is advised to start it manually by running \"/etc/usermin/restart-by-force-kill\" command" fi else if [ "usermin" = "webmin" ]; then if [ "$killmodenone" != "1" ]; then /etc/usermin/.post-install >/dev/null 2>&1 </dev/null else /etc/usermin/.reload-init >/dev/null 2>&1 </dev/null if [ -f /etc/usermin/.reload-init-systemd ]; then /etc/usermin/.reload-init-systemd >/dev/null 2>&1 </dev/null rm -f /etc/usermin/.reload-init-systemd fi fi else if [ "$productrunning" = "1" ]; then /etc/usermin/restart >/dev/null 2>&1 </dev/null fi fi if [ "$?" != "0" ]; then echo "W: ${productucf} server cannot be restarted. It is advised to restart it manually by running \"/etc/usermin/restart-by-force-kill\" command when upgrade process is finished" fi fi fi cat >/etc/usermin/uninstall.sh <<EOFF #!/bin/sh printf "Are you sure you want to uninstall Usermin? (y/n) : " read answer printf "\n" if [ "\$answer" = "y" ]; then echo "Removing Usermin package .." rm -f /usr/share/usermin/authentic-theme/manifest-* dpkg --remove --force-depends usermin systemctlcmd=\`which systemctl 2>/dev/null\` if [ -x "\$systemctlcmd" ]; then \$systemctlcmd stop usermin >/dev/null 2>&1 </dev/null rm -f /lib/systemd/system/usermin.service \$systemctlcmd daemon-reload fi echo ".. done" fi EOFF chmod +x /etc/usermin/uninstall.sh port=`grep "^port=" /etc/usermin/miniserv.conf | sed -e 's/port=//g'` perl -e 'use Net::SSLeay' >/dev/null 2>/dev/null sslmode=0 if [ "$?" = "0" ]; then grep ssl=1 /etc/usermin/miniserv.conf >/dev/null 2>/dev/null if [ "$?" = "0" ]; then sslmode=1 fi fi if [ "$sslmode" = "1" ]; then echo "Usermin install complete. You can now login to https://$host:$port/" >>$tempdir/usermin-setup.out 2>&1 else echo "Usermin install complete. You can now login to http://$host:$port/" >>$tempdir/usermin-setup.out 2>&1 fi if [ "usermin" = "webmin" ]; then echo "as root with your root password, or as any user who can use sudo" >>$tempdir/usermin-setup.out 2>&1 echo "to run commands as root." >>$tempdir/usermin-setup.out 2>&1 else echo "as any user on the system." >>$tempdir/usermin-setup.out 2>&1 fiPrivate