Commit da0bf253 authored by Marco Mariani's avatar Marco Mariani

cygwin: extract /opt/slapos within bootstrap.ph

parent 356ef16d
...@@ -86,7 +86,6 @@ Name: "{group}\User Guide"; Filename: "{app}\user-guide.html"; ...@@ -86,7 +86,6 @@ Name: "{group}\User Guide"; Filename: "{app}\user-guide.html";
[Run] [Run]
Filename: "{app}\setup-cygwin.bat"; Parameters: """{app}"""; StatusMsg: "Installing Cygwin..."; Flags: runhidden; Filename: "{app}\setup-cygwin.bat"; Parameters: """{app}"""; StatusMsg: "Installing Cygwin..."; Flags: runhidden;
Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scripts/slapos-cygwin-bootstrap.sh"; WorkingDir: "{app}\cygwin\bin"; Description: "Configure Cygwin"; StatusMsg: "Configure Cygwin..."; Flags: skipifdoesntexist; Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i /etc/slapos/scripts/slapos-cygwin-bootstrap.sh"; WorkingDir: "{app}\cygwin\bin"; Description: "Configure Cygwin"; StatusMsg: "Configure Cygwin..."; Flags: skipifdoesntexist;
Filename: "{app}\cygwin\bin\bash.exe"; Parameters: "--login -i -c ""cd /opt ; tar -xzf /opt/downloads/slapos.tar.gz"""; WorkingDir: "{app}\cygwin\bin"; Description: "Configure Cygwin"; StatusMsg: "Extract slapos node ...";
[UninstallRun] [UninstallRun]
Filename: "{app}\cygwin\bin\mintty.exe"; Parameters: "-c ~/.minttyrc -h never -t ""Uninstall SlapOS"" /etc/slapos/scripts/slapos-cleanup.sh"; WorkingDir: "{app}\cygwin\bin"; Flags: skipifdoesntexist; Filename: "{app}\cygwin\bin\mintty.exe"; Parameters: "-c ~/.minttyrc -h never -t ""Uninstall SlapOS"" /etc/slapos/scripts/slapos-cleanup.sh"; WorkingDir: "{app}\cygwin\bin"; Flags: skipifdoesntexist;
......
...@@ -342,6 +342,14 @@ fi ...@@ -342,6 +342,14 @@ fi
# ----------------------------------------------------------- # -----------------------------------------------------------
install_ipv6_protocol install_ipv6_protocol
# -------------------
# Extract /opt/slapos
# -------------------
[[ -f /opt/downloads/slapos.tar.gz ]] && (
csih_inform "Extracting /opt/slapos..."
tar -xzf /opt/downloads/slapos.tar.gz -C /opt
)
# ----------------------------------------------------------- # -----------------------------------------------------------
# End script # End script
# ----------------------------------------------------------- # -----------------------------------------------------------
......
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