-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes in check for systemd #269
base: master
Are you sure you want to change the base?
Conversation
… 14-upstart-systemd-check
7dbf469
to
84e8454
Compare
@@ -138,7 +138,7 @@ case "$1" in | |||
|
|||
# Service | |||
if [ -f /etc/init.d/wazuh-agent ]; then | |||
if [ -d /run/systemd/system ]; then | |||
if [ ! -z "$(file /sbin/init |grep "systemd")" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: what about to use:
if [ ! -z "$(file /sbin/init |grep 'systemd')" ]; then
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6765088
@@ -22,7 +22,8 @@ case "$1" in | |||
rm -rf ${WAZUH_TMP_DIR} | |||
fi | |||
|
|||
if [ -d /run/systemd/system ] ; then | |||
|
|||
if [ ! -z "$(file /sbin/init |grep "systemd")" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6765088
@@ -339,7 +339,7 @@ case "$1" in | |||
|
|||
# Service | |||
if [ -x /etc/init.d/wazuh-manager ]; then | |||
if [ -d /run/systemd/system ]; then | |||
if [ ! -z "$(file /sbin/init |grep "systemd")" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6765088
@@ -27,7 +27,7 @@ case "$1" in | |||
|
|||
|
|||
|
|||
if [ -d /run/systemd/system ] ; then | |||
if [ ! -z "$(file /sbin/init |grep "systemd")" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6765088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review the comments. On the other hand, please update the currents specs and pull your branch.
… 14-upstart-systemd-check
Hello team, I implemented the requested changes and tested the package generated from the new specs in ubuntu 14 LTS with the I have also tested it on a default Ubuntu 14 LTS, Ubuntu 16 LTS, and Ubuntu 18 LTS Regards, |
Hello team,
This PR closes #14, I have changed how the post-installation script checked if systemd and its functions were available, from checking whether the /run/systemd/system directory existed to verifying if systemd is being used to initiate the system.
I have generated packages and tested them in:
Regards,
Daniel Folch