Server IP : 127.0.0.2 / Your IP : 3.135.209.242 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh set -e add_groups() { if ! getent passwd lxd >/dev/null; then adduser --system lxd --home /var/lib/lxd/ --shell /bin/false # UID allocation NEXT_UID=100000 while read line; do OLD_IFS=$IFS IFS=":" set -- $line IFS=$OLD_IFS [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] && continue LAST=$(($2+$3)) [ "$LAST" -gt "$NEXT_UID" ] && NEXT_UID=$LAST done < /etc/subuid usermod --add-subuids ${NEXT_UID}-$(($NEXT_UID+65535)) lxd usermod --add-subuids ${NEXT_UID}-$(($NEXT_UID+65535)) root # GID allocation NEXT_GID=100000 while read line; do OLD_IFS=$IFS IFS=":" set -- $line IFS=$OLD_IFS [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] && continue LAST=$(($2+$3)) [ "$LAST" -gt "$NEXT_GID" ] && NEXT_GID=$LAST done < /etc/subgid usermod --add-subgids ${NEXT_GID}-$(($NEXT_GID+65535)) lxd usermod --add-subgids ${NEXT_GID}-$(($NEXT_GID+65535)) root fi if ! getent group lxd >/dev/null; then addgroup --system lxd fi # Add each admin user to the lxd group - for systems installed # before precise for u in $(getent group admin | sed -e "s/^.*://" -e "s/,/ /g"); do adduser "$u" lxd >/dev/null || true done # Add each sudo user to the lxd group for u in $(getent group sudo | sed -e "s/^.*://" -e "s/,/ /g"); do adduser "$u" lxd >/dev/null || true done } case "$1" in install|upgrade) add_groups # lxcbr0 => lxdbr0 bridge upgrade if [ -n "${2}" ] && dpkg --compare-versions "${2}" lt "2.0.0~rc8-0ubuntu3~"; then . /usr/share/debconf/confmodule db_input critical lxd/bridge-upgrade-warning || true db_go fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # Automatically added by dh_installdeb dpkg-maintscript-helper rm_conffile /etc/cron.hourly/lxd 2.0.0~rc2-0ubuntu3~ -- "$@" # End automatically added section exit 0