From 46f3a5ae49a611cda1a83392cdca9e152b22ce50 Mon Sep 17 00:00:00 2001 From: Adrian Bridgett Date: Fri, 18 Dec 2015 11:33:07 +0000 Subject: [PATCH] no need to hide these files from non-root users better compliance with Debian policy --- build_mesos | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build_mesos b/build_mesos index 81561bc..fa98adc 100755 --- a/build_mesos +++ b/build_mesos @@ -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) == '=' ]] @@ -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 @@ -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 }