Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
syncontent
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Web Essentials Jira
Web Essentials Jira
Labels
Merge Requests
0
Merge Requests
0
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Visay Keo
syncontent
Commits
750bd22e
Commit
750bd22e
authored
Dec 07, 2015
by
Visay Keo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TASK] Add support for Mac
parent
be2bdf67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
.gitignore
.gitignore
+1
-0
CHANGELOG
CHANGELOG
+9
-0
bin/syncontent
bin/syncontent
+10
-3
No files found.
.gitignore
View file @
750bd22e
/config/master/*
/config/master/*
/ansible/hosts.ini
/ansible/hosts.ini
.DS_Store
CHANGELOG
View file @
750bd22e
CHANGELOG
CHANGELOG
=========
=========
3.0.4
- [TASK] Add support for Mac
3.0.3
-----
- [BUGFIX] Remove suggest attribute in composer
3.0.2
3.0.2
-----
-----
...
...
bin/syncontent
View file @
750bd22e
...
@@ -4,8 +4,16 @@
...
@@ -4,8 +4,16 @@
ROOT_DIR
=
`
pwd
`
ROOT_DIR
=
`
pwd
`
DIR_NAME
=
$(
dirname
"
$0
"
)
DIR_NAME
=
$(
dirname
"
$0
"
)
FILE_NAME
=
$(
basename
"
$0
"
)
FILE_NAME
=
$(
basename
"
$0
"
)
BINARY
=
`
readlink
-f
${
ROOT_DIR
}
/
${
DIR_NAME
}
/
${
FILE_NAME
}
`
BINARY
=
`
readlink
${
ROOT_DIR
}
/
${
DIR_NAME
}
/
${
FILE_NAME
}
-f
`
BIN_PATH
=
${
BINARY
%/*
}
BIN_PATH
=
${
BINARY
%/*
}
if
[
"
${
BIN_PATH
}
"
==
"../*"
]
;
then
# This is a workaround for mac user to resolve correct link
cd
${
ROOT_DIR
}
/
${
DIR_NAME
}
/
${
BIN_PATH
}
BIN_PATH
=
`
pwd
`
cd
${
ROOT_DIR
}
fi
PACKAGE_DIR
=
${
BIN_PATH
%/*
}
PACKAGE_DIR
=
${
BIN_PATH
%/*
}
# Colors
# Colors
...
@@ -220,8 +228,7 @@ fi
...
@@ -220,8 +228,7 @@ fi
# Create dynamic inventory file
# Create dynamic inventory file
rm
-f
${
PACKAGE_DIR
}
/ansible/hosts.ini
rm
-f
${
PACKAGE_DIR
}
/ansible/hosts.ini
cp
${
PACKAGE_DIR
}
/ansible/hosts.ini.template
${
PACKAGE_DIR
}
/ansible/hosts.ini
sed
"s/{{ HOST }}/
${
REMOTE_HOST
}
/g"
${
PACKAGE_DIR
}
/ansible/hosts.ini.template
>
${
PACKAGE_DIR
}
/ansible/hosts.ini
sed
-i
"s/{{ HOST }}/
${
REMOTE_HOST
}
/g"
${
PACKAGE_DIR
}
/ansible/hosts.ini
# Prepare all parameters for ansible
# Prepare all parameters for ansible
ANSIBLE_PARAMS
=
"-i
${
PACKAGE_DIR
}
/ansible/hosts.ini
${
PACKAGE_DIR
}
/ansible/playbook.yml"
ANSIBLE_PARAMS
=
"-i
${
PACKAGE_DIR
}
/ansible/hosts.ini
${
PACKAGE_DIR
}
/ansible/playbook.yml"
...
...
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