Server IP : 195.201.23.43 / Your IP : 3.144.106.95 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 if [ "1" = "1" ]; then # Copy config file to /etc/webmin or /etc/usermin os_type=`grep "^os_type=" /etc/webmin/config | sed -e 's/os_type=//g'` os_version=`grep "^os_version=" /etc/webmin/config | sed -e 's/os_version=//g'` /usr/bin/perl /usr/share/webmin/copyconfig.pl $os_type $os_version /usr/share/webmin /etc/webmin virtualmin-htpasswd # Update the ACL for the root user, or the first user in the ACL grep "^root:" /etc/webmin/webmin.acl >/dev/null if [ "$?" = "0" ]; then user=root else user=`head -1 /etc/webmin/webmin.acl | cut -f 1 -d :` fi mods=`grep $user: /etc/webmin/webmin.acl | cut -f 2 -d :` echo $mods | grep " virtualmin-htpasswd" >/dev/null if [ "$?" != "0" ]; then grep -v ^$user: /etc/webmin/webmin.acl > /tmp/webmin.acl.tmp echo $user: $mods virtualmin-htpasswd > /etc/webmin/webmin.acl cat /tmp/webmin.acl.tmp >> /etc/webmin/webmin.acl rm -f /tmp/webmin.acl.tmp fi fi if [ "" != "" -a "" = "1" ]; then # Activate this theme grep -v "^preroot=" /etc/webmin/miniserv.conf >/etc/webmin/miniserv.conf.tmp (cat /etc/webmin/miniserv.conf.tmp ; echo preroot=virtualmin-htpasswd) > /etc/webmin/miniserv.conf rm -f /etc/webmin/miniserv.conf.tmp grep -v "^theme=" /etc/webmin/config >/etc/webmin/config.tmp (cat /etc/webmin/config.tmp ; echo theme=virtualmin-htpasswd) > /etc/webmin/config rm -f /etc/webmin/config.tmp (/etc/webmin/stop && /etc/webmin/start) >/dev/null 2>&1 fi rm -f /etc/webmin/module.infos.cache rm -f /var/webmin/module.infos.cache # Run post-install function if [ "webmin" = "webmin" ]; then cd /usr/share/webmin WEBMIN_CONFIG=/etc/webmin WEBMIN_VAR=/var/webmin /usr/share/webmin/run-postinstalls.pl virtualmin-htpasswd fi # Run post-install shell script if [ -r "/usr/share/webmin/virtualmin-htpasswd/postinstall.sh" ]; then cd /usr/share/webmin WEBMIN_CONFIG=/etc/webmin WEBMIN_VAR=/var/webmin /usr/share/webmin/virtualmin-htpasswd/postinstall.sh fiPrivate