Move ipfs users to tmp

This commit is contained in:
Bob Mottram 2016-09-12 15:21:03 +01:00
parent 858492fc9b
commit 47f92b8365
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
4 changed files with 3 additions and 7 deletions

View File

@ -779,7 +779,7 @@ if [ \$no_of_users -gt 0 ]; then
chmod +x /home/$MY_USERNAME/Desktop/Users.desktop chmod +x /home/$MY_USERNAME/Desktop/Users.desktop
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop/Users.desktop chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop/Users.desktop
if [ -f /home/$MY_USERNAME/.ipfs-users ]; then if [ -f /tmp/.ipfs-users ]; then
echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/sites.desktop echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/sites.desktop
echo 'Type=Application' >> /home/$MY_USERNAME/Desktop/sites.desktop echo 'Type=Application' >> /home/$MY_USERNAME/Desktop/sites.desktop
echo "Name=Visit a site" >> /home/$MY_USERNAME/Desktop/sites.desktop echo "Name=Visit a site" >> /home/$MY_USERNAME/Desktop/sites.desktop

View File

@ -482,10 +482,6 @@ function setup_ipfs {
shred -zu /home/$MY_USERNAME/.ipfs-public shred -zu /home/$MY_USERNAME/.ipfs-public
fi fi
if [ -f /home/$MY_USERNAME/.ipfs-users ]; then
shred -zu /home/$MY_USERNAME/.ipfs-users
fi
su -c "$IPFS_COMMAND init -b $IPFS_KEY_LENGTH" - $MY_USERNAME su -c "$IPFS_COMMAND init -b $IPFS_KEY_LENGTH" - $MY_USERNAME
if [ ! -d /home/$MY_USERNAME/.ipfs ]; then if [ ! -d /home/$MY_USERNAME/.ipfs ]; then
echo "IPFS could not be initialised for user $MY_USERNAME" >> $INSTALL_LOG echo "IPFS could not be initialised for user $MY_USERNAME" >> $INSTALL_LOG

View File

@ -40,7 +40,7 @@ BROWSER_OPTIONS='-p'
# An optional suffix to be appended to the URL # An optional suffix to be appended to the URL
SUFFIX=$1 SUFFIX=$1
IPFS_USERS_FILE=/home/$USER/.ipfs-users IPFS_USERS_FILE=/tmp/.ipfs-users
if [ ! -f $IPFS_USERS_FILE ]; then if [ ! -f $IPFS_USERS_FILE ]; then
exit 0 exit 0
fi fi

View File

@ -39,7 +39,7 @@ MY_USERNAME=$MESH_USERNAME
IPFS_PORT=4001 IPFS_PORT=4001
IPFS_PATH=/usr/bin IPFS_PATH=/usr/bin
IPFS_COMMAND=$IPFS_PATH/ipfs IPFS_COMMAND=$IPFS_PATH/ipfs
IPFS_USERS_FILE=/home/$MY_USERNAME/.ipfs-users IPFS_USERS_FILE=/tmp/.ipfs-users
IPFS_PUBLIC=/home/$MY_USERNAME/.ipfs-public IPFS_PUBLIC=/home/$MY_USERNAME/.ipfs-public
# contains the output of the avahi command # contains the output of the avahi command