OpenStack Storage (Swift)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
557 B

#!/bin/sh
# adduser -D -H syslog && \
for user in "swift"; do
id -u $user > /dev/null 2>&1
if [ ! $? == '0' ]; then
adduser -D $user
printf "created user $user\n"
fi
done
printf "\n"
# mkdir /srv/node && \
# mkdir /var/spool/rsyslog && \
# chown -R swift:swift /srv/node/ && \
for dirname in "/srv/node" "$HOME/bin" "/opt" "/var/cache/swift" " /var/log/socklog/swift" "/var/log/swift/" "/var/run/swift"; do
if [ ! -d $dirname ]; then
mkdir -p $dirname
printf "created $dirname\n"
fi
done
# mkdir -p $HOME/bin && \
# mkdir -p /opt