]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - modules/base_installation/files/scripts/puppet_lock
Add ldap ssha script
[perso/Immae/Projets/Puppet.git] / modules / base_installation / files / scripts / puppet_lock
CommitLineData
e3cc4c31
IB
1#!/bin/bash
2
3lockfile=/var/run/puppet-apply.lock
4path=`dirname $0`
5path=`cd $path/..; pwd`
6
7if [ $(id -u) -gt 0 ]; then
8 echo "You must be root to run this script." >&2
9 exit 2
10fi
11
12if [ "$1" = "off" ]; then
13 rm -f "$lockfile"
14else
15 touch "$lockfile"
16fi