Server IP : 127.0.0.2 / Your IP : 3.15.22.62 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 : /usr/lib/lxd/ |
Upload File : |
#!/bin/sh -e [ ! -e /etc/default/lxd-bridge ] && exit 0 . /etc/default/lxd-bridge # We only run LXD configuration if in setup mode [ -e "/var/lib/lxd/.setup_mode" ] || exit 0 # Only apply the configuration if the bridge is defined if [ "$(lxc profile device get default eth0 nictype --force-local 2>/dev/null)" = "bridged" ]; then lxc profile unset default user.network_mode --force-local || true lxc profile unset default environment.http_proxy --force-local || true if [ "${USE_LXD_BRIDGE}" = "false" ]; then if [ -n "${LXD_BRIDGE}" ]; then lxc profile device set default eth0 parent ${LXD_BRIDGE} --force-local || true fi else lxc profile device set default eth0 parent ${LXD_BRIDGE} --force-local || true if [ -z "${LXD_IPV4_ADDR}" ] && [ -z "${LXD_IPV6_ADDR}" ]; then lxc profile set default user.network_mode "link-local" --force-local || true fi if [ "${LXD_IPV6_PROXY}" = "true" ]; then lxc profile set default environment.http_proxy "http://[fe80::1%eth0]:13128" --force-local || true fi fi fi # Get LXD to start containers now lxd ready # If we fail, don't get stuck in setup mode rm -f /var/lib/lxd/.setup_mode exit 0