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
Alain Takoudjou
slapos.package
Commits
1e68b17d
Commit
1e68b17d
authored
Aug 01, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bash default value issue
parent
e36c8e95
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
windows/scripts/build-slapos.sh
windows/scripts/build-slapos.sh
+2
-2
windows/scripts/pre-uninstall.sh
windows/scripts/pre-uninstall.sh
+2
-2
windows/scripts/slapos-cron-config
windows/scripts/slapos-cron-config
+2
-2
windows/scripts/slapos-include.sh
windows/scripts/slapos-include.sh
+4
-4
No files found.
windows/scripts/build-slapos.sh
View file @
1e68b17d
...
...
@@ -3,12 +3,12 @@ export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:$PATH
function
show_error_exit
()
{
echo
Error:
${
1
-Error
:
build slapos failed.
}
echo
Error:
${
1
:-
"build slapos failed."
}
read
-n
1
-p
"Press any key to exit..."
exit
1
}
slapos_home
=
${
1
-/opt/slapos
}
slapos_home
=
${
1
:
-
/opt/slapos
}
slapos_cache
=
/opt/download-cache
slapos_url
=
http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/cygwin-0:/component/slapos/buildout.cfg
slapos_cfg
=
$slapos_home
/buildout.cfg
...
...
windows/scripts/pre-uninstall.sh
View file @
1e68b17d
...
...
@@ -35,8 +35,8 @@ read -f slapos_kill_process
# Declare variables
#
declare
-r
slapos_prefix
=
declare
-r
slapos_administrator
=
${
slapos_prefix
:slap
}
root
declare
-r
slapos_user_basename
=
${
slapos_prefix
:slap
}
user
declare
-r
slapos_administrator
=
${
slapos_prefix
:
-
slap
}
root
declare
-r
slapos_user_basename
=
${
slapos_prefix
:
-
slap
}
user
declare
-r
slapos_ifname
=
${
slapos_prefix
}
re6stnet-lo
declare
-r
re6stnet_service_name
=
${
slapos_prefix
}
re6stnet
declare
-r
cron_service_name
=
${
slapos_prefix
}
cron
...
...
windows/scripts/slapos-cron-config
View file @
1e68b17d
...
...
@@ -867,8 +867,8 @@ sanity_check || exit 1
get_NT
||
exit
1
cron_service_name
=
${
1
:cron
}
slapos_administrator
=
${
2
:slaproot
}
cron_service_name
=
${
1
:
-
cron
}
slapos_administrator
=
${
2
:
-
slaproot
}
_password
=
$3
install_service
${
slapos_administrator
}
${
_password
}
...
...
windows/scripts/slapos-include.sh
View file @
1e68b17d
...
...
@@ -44,9 +44,9 @@ declare -r slapos_cron_config=/usr/bin/slapos-cron-config
declare
-r
slaprunner_startup_file
=
/etc/slapos/scripts/slap-runner.html
declare
-r
slapos_run_key
=
'\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run'
declare
-r
slapos_run_entry
=
${
slapos_prefix
:slapos
}
-configure
declare
-r
slapos_administrator
=
${
slapos_prefix
:slap
}
root
declare
-r
slapos_user_basename
=
${
slapos_prefix
:slap
}
user
declare
-r
slapos_run_entry
=
${
slapos_prefix
:
-
slapos
}
-configure
declare
-r
slapos_administrator
=
${
slapos_prefix
:
-
slap
}
root
declare
-r
slapos_user_basename
=
${
slapos_prefix
:
-
slap
}
user
declare
-r
slapos_ifname
=
${
slapos_prefix
}
re6stnet-lo
declare
-r
re6stnet_service_name
=
${
slapos_prefix
}
re6stnet
declare
-r
cron_service_name
=
${
slapos_prefix
}
cron
...
...
@@ -183,7 +183,7 @@ function reset_slapos_connection()
# ======================================================================
function
show_error_exit
()
{
echo
${
1
-Error
:
configure SlapOS failed.
}
echo
${
1
:-
"Error: configure SlapOS failed."
}
read
-n
1
-p
"Press any key to exit..."
exit
1
}
# === show_error_exit() === #
...
...
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