Commit e911888c authored by Lorenzo Martinico's avatar Lorenzo Martinico

Add option to install chromebrew

parent d8022335
......@@ -99,7 +99,7 @@ context =
recipe = slapos.recipe.template:jinja2
template = {{ software_dir }}/scripts/cros_full_build.in
rendered = ${directory:run}/cros_full_build
md5sum = e11a8ed3fc100ddf591469ca8ac75d52
md5sum = dc252e64e03d82387dfca6c1d41bd5bb
mode = 0700
context =
key bash_path bin:bash
......
......@@ -274,6 +274,21 @@ safewrite() { __safewrite dd "\$@" ; }
sudodd() { sudo dd "\$@" ; }
sudosafewrite() { __safewrite sudodd "\$@" ; }
crew() {
if [[ ! -x /usr/local/bin/crew ]] ; then
read -p "Chromebrew is not on this machine; do you want to install it? [Y/n] " -r -n 1 crew_install
echo ""
if [[ ! \$crew_install =~ ^[Nn]\$ ]] ; then
echo "Fetching installation file..."
curl -Ls https://lab.nexedi.com/nexedi/chromebrew/raw/nexedi/install.sh | bash
else
return 1
fi
else
command crew "\$@"
fi
}
# ----- END NayuOS configuration -----
EOF
fi
......
......@@ -26,7 +26,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg
rendered = ${buildout:directory}/instance.cfg
mode = 0644
md5sum = 037a1c8c1091f07e8e5660b59223743f
md5sum = 4a01272e619f456ae7c9b7d96bff0cc3
context =
key software_dir :_profile_base_location_
key instance_dir buildout:directory
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment