Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prae@build test/build$ cat ../tklpatch/leechbox/conf
- #!/bin/bash -ex
- # simple nfs test
- export HOSTNAME=nfstest
- export USERNAME=test
- export GROUPNAME=test
- # set hostname
- echo "$HOSTNAME" > /etc/hostname
- sed -i "s|127.0.1.1 \(.*\)|127.0.1.1 $HOSTNAME|" /etc/hosts
- # create the nzb userid (which all the nzb daemons run as)
- groupadd $GROUPNAME
- useradd -c "App userid" -d /home/$USERNAME -g $GROUPNAME -m -s /bin/bash "$USERNAME"
- chown -R $USERNAME:$GROUPNAME /home/$USERNAME
- # add the python installation tools, sudo and nfs support
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get -y \
- -o DPkg::Options::=--force-confdef \
- -o DPkg::Options::=--force-confold \
- install nfs-kernel-server nfs-common
- service nfs-kernel-server stop
- service nfs-common stop
- ####################################################
- # MAKE SURE ALL FILES HAVE CORRECT OWNER
- ####################################################
- chown -R $USERNAME:$GROUPNAME /home/$USERNAME
- ####################################################
- # done!
- ####################################################
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement