Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

no need to hide these files from non-root users #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions build_mesos
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ function create_installation {(
mkdir -p etc/mesos-master etc/mesos-slave var/lib/mesos
cp ../CHANGELOG usr/share/doc/mesos/
cp "$this"/default/mesos* etc/default/
chmod 644 "etc/default/$this"
echo zk://localhost:2181/mesos > etc/mesos/zk
if [[ $(vercomp "$version" 0.19.0) == '>' ]] ||
[[ $(vercomp "$version" 0.19.0) == '=' ]]
Expand Down Expand Up @@ -246,6 +247,7 @@ function create_lib_symlinks {(
function init_scripts {
mkdir -p usr/bin
cp -p "$this"/mesos-init-wrapper usr/bin
chmod 755 usr/bin/mesos-init-wrapper
case "$1" in
fedora/*|redhat/7|redhat/7.*|centos/7|centos/7.*)
mkdir -p usr/lib/systemd/system
Expand All @@ -258,11 +260,15 @@ function init_scripts {
debian/*)
mkdir -p etc/init.d
cp -p "$this"/init/master.init etc/init.d/mesos-master
cp -p "$this"/init/slave.init etc/init.d/mesos-slave ;;
cp -p "$this"/init/slave.init etc/init.d/mesos-slave
chmod 755 etc/init.d/mesos-master etc/init.d/mesos-slave
;;
ubuntu/*|redhat/6|redhat/6.*|centos/6|centos/6.*)
mkdir -p etc/init
cp "$this"/upstart/master.upstart etc/init/mesos-master.conf
cp "$this"/upstart/slave.upstart etc/init/mesos-slave.conf ;;
cp "$this"/upstart/slave.upstart etc/init/mesos-slave.conf
chmod 644 etc/init/mesos-master.conf etc/init/mesos-slave.conf
;;
*) err "Not sure how to make init scripts for: $1" ;;
esac
}
Expand Down