Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kasra Jamshidi
slapos.package
Commits
a3ca8db5
Commit
a3ca8db5
authored
May 06, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change patch file names;
Remove redundant mask in ip addr list command;
parent
72f1822e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
14 deletions
+18
-14
windows/scripts/build-slapos.sh
windows/scripts/build-slapos.sh
+6
-5
windows/scripts/ip
windows/scripts/ip
+4
-3
windows/scripts/slapos-all-in-one.iss
windows/scripts/slapos-all-in-one.iss
+3
-2
windows/scripts/slapos-node-config.sh
windows/scripts/slapos-node-config.sh
+2
-2
windows/scripts/slapos.iss
windows/scripts/slapos.iss
+3
-2
No files found.
windows/scripts/build-slapos.sh
View file @
a3ca8db5
...
...
@@ -31,9 +31,10 @@ fi
bin/buildout
-v
-N
||
(
echo
"Buildout SlapOS failed."
;
exit
1
)
# apply patches
if
[[
-f
/etc/slapos/patches/slapos-core.patch
]]
;
then
echo
"Apply patch: /etc/slapos/patches/slapos-core.patch"
(
cd
`
ls
-d
$slapos_home
/eggs/slapos.core-
*
-py2
.7.egg
`
/slapos
;
\
patch
-p1
< /etc/slapos/patches/slapos-core.patch
)
(
cd
/etc/slapos/patches
;
mv
slapos-core.patch slapos-core.patch.done
)
patch_file
=
/etc/slapos/patches/slapos-core-format.patch
if
[[
-f
$patch_file
]]
;
then
echo
"Apply patch:
$patch_file
"
(
cd
`
ls
-d
$slapos_home
/eggs/slapos.core-
*
-py2
.7.egg
`
;
\
patch
-p1
<
$patch_file
)
(
cd
/etc/slapos/patches
;
mv
$patch_file
{
,.done
})
fi
windows/scripts/ip
View file @
a3ca8db5
...
...
@@ -550,6 +550,10 @@ elif [[ $object == "addr" ]] ; then
opt_family
=
"ipv4"
fi
fi
[[
"
$opt_family
"
==
"ipv4"
]]
&&
[[
!
"
$mask
"
==
*
.
*
]]
&&
\
mask
=
$(
prefix_to_netmask
$mask
)
shift
elif
[[
$command
==
"list"
]]
;
then
command
=
"show"
...
...
@@ -562,9 +566,6 @@ elif [[ $object == "addr" ]] ; then
if
[[
"
$opt_family
"
==
"ipv4"
||
"
$opt_family
"
==
""
]]
;
then
ipcmd
=
"netsh interface ip
$command
address"
if
[[
!
"
$mask
"
==
*
.
*
]]
;
then
mask
=
$(
prefix_to_netmask
$mask
)
fi
address
=
"
$address
$mask
"
elif
[[
"
$opt_family
"
==
"ipv6"
]]
;
then
ipcmd
=
"netsh interface ipv6
$command
address"
...
...
windows/scripts/slapos-all-in-one.iss
View file @
a3ca8db5
...
...
@@ -28,8 +28,9 @@ Source: "opt\downloads\pyOpenSSL-0.13.tar.gz"; DestDir: "{app}\cygwin"; DestName
Source: "opt\git\re6stnet\dist\re6stnet-0.1.tar.gz"; DestDir: "{app}\cygwin"; DestName: "re6stnet-0.1.tar.gz"; Flags: deleteafterinstall;
Source: "opt\downloads\miniupnpc-1.8.tar.gz"; DestDir: "{app}\cygwin"; DestName: "miniupnpc.tar.gz"; Flags: deleteafterinstall;
Source: "opt\git\slapos\component\cygwin\slapos-core.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "opt\git\slapos\component\cygwin\slapos-cookbook-inotifyx.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "src\patch\slapos-core-format.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "src\patch\slapos-cookbook-inotifyx.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "src\patch\slapos-core-env.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "opt\git\qooxdoo\application\playground\build\*"; DestDir: "{app}\cygwin\etc\slapos\desktop"; Flags: recursesubdirs;
Source: "opt\git\qooxdoo\application\showcase\build\*"; DestDir: "{app}\cygwin\etc\slapos\node"; Flags: recursesubdirs;
...
...
windows/scripts/slapos-node-config.sh
View file @
a3ca8db5
...
...
@@ -77,8 +77,8 @@ function connection2guid()
sed
-e
"s/^GUID
\s
*:
\s
*//"
}
node_certificate_file
=
/etc/opt/slapos/ssl/c
ertificate
node_key_file
=
/etc/opt/slapos/ssl/key
node_certificate_file
=
/etc/opt/slapos/ssl/c
omputer.crt
node_key_file
=
/etc/opt/slapos/ssl/
computer.
key
node_config_file
=
/etc/opt/slapos/slapos.cfg
node_template_file
=
/etc/slapos/slapos.cfg.example
run_key
=
'\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run'
...
...
windows/scripts/slapos.iss
View file @
a3ca8db5
...
...
@@ -25,8 +25,9 @@ Name: "{app}\cygwin\etc\slapos\images"
Source: "opt\git\re6stnet\dist\re6stnet-0.1.tar.gz"; DestDir: "{app}\cygwin"; DestName: "re6stnet-0.1.tar.gz"; Flags: deleteafterinstall;
Source: "opt\downloads\miniupnpc-1.8.tar.gz"; DestDir: "{app}\cygwin"; DestName: "miniupnpc.tar.gz"; Flags: deleteafterinstall;
Source: "opt\git\slapos\component\cygwin\slapos-core.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "opt\git\slapos\component\cygwin\slapos-cookbook-inotifyx.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "src\patch\slapos-core-format.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "src\patch\slapos-cookbook-inotifyx.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "src\patch\slapos-core-env.patch"; DestDir: "{app}\cygwin\etc\slapos\patches";
Source: "opt\git\qooxdoo\application\playground\build\*"; DestDir: "{app}\cygwin\etc\slapos\desktop"; Flags: recursesubdirs;
Source: "opt\git\qooxdoo\application\showcase\build\*"; DestDir: "{app}\cygwin\etc\slapos\node"; Flags: recursesubdirs;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment