Commit f2a44105 authored by HgO's avatar HgO

fix sudo permissions for cube build script

parent 2f396fbc
......@@ -609,7 +609,7 @@ function create_hypercube_file() {
if confirm $"Would you like to import the VPN certificates from a directory?" "y"
then
read -e -r -p $"Enter your VPN certificates' location: " VPN_CERTIFICATES_LOCATION
if import_vpn_certificates $VPN_CERTIFICATES_LOCATION
if import_vpn_certificates "$VPN_CERTIFICATES_LOCATION"
then
location_has_error=false
fi
......@@ -788,8 +788,8 @@ function download_image() {
debug $"Building internetcube image..."
check_sudo
sudo chmod u+x $CUBE_BUILD_SCRIPT_NAME
"./$CUBE_BUILD_SCRIPT_NAME" "$ynh_image"
rm -rf $CUBE_BUILD_SCRIPT_DIR
sudo "./$CUBE_BUILD_SCRIPT_NAME" "$ynh_image"
rm -rf "$CUBE_BUILD_SCRIPT_DIR" "tmp"
fi
info $"We've got our internetcube image!"
......
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