Puppet Class: isp3node::base::shell

Defined in:
manifests/base/shell.pp

Summary

Changes the systems default shell

Overview

Changes the default shell to bash, as required for ispconfig

Examples:

include isp3node::base::shell


7
8
9
10
11
12
13
# File 'manifests/base/shell.pp', line 7

class isp3node::base::shell {
  exec{'Change default shell to bash':
    command => 'rm /bin/sh && ln -s /bin/bash /bin/sh && dpkg-reconfigure -f noninteractive dash',
    onlyif  => 'ls -la /bin/sh | grep dash',
    path    => $facts['path'],
  }
}