Store mesh users list on tmp
This commit is contained in:
parent
bc740ddb12
commit
858492fc9b
|
@ -754,12 +754,12 @@ else
|
||||||
no_of_users=\$(echo "\$users_list" | wc -l)
|
no_of_users=\$(echo "\$users_list" | wc -l)
|
||||||
fi
|
fi
|
||||||
if [ \$no_of_users -gt 0 ]; then
|
if [ \$no_of_users -gt 0 ]; then
|
||||||
echo "\$users_list" > /home/$MY_USERNAME/Users.txt
|
echo "\$users_list" > /tmp/Users.txt
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Users.txt
|
chown $MY_USERNAME:$MY_USERNAME /tmp/Users.txt
|
||||||
|
|
||||||
echo 'showing_users=\$(ps aux | grep $MESH_TEXT_EDITOR | grep "Users.txt")' > /home/$MY_USERNAME/showusers
|
echo 'showing_users=\$(ps aux | grep $MESH_TEXT_EDITOR | grep "Users.txt")' > /home/$MY_USERNAME/showusers
|
||||||
echo 'if [ \${#showing_users} -eq 0 ]; then' >> /home/$MY_USERNAME/showusers
|
echo 'if [ \${#showing_users} -eq 0 ]; then' >> /home/$MY_USERNAME/showusers
|
||||||
echo ' $MESH_TEXT_EDITOR /home/$MY_USERNAME/Users.txt' >> /home/$MY_USERNAME/showusers
|
echo ' $MESH_TEXT_EDITOR /tmp/Users.txt' >> /home/$MY_USERNAME/showusers
|
||||||
echo 'fi' >> /home/$MY_USERNAME/showusers
|
echo 'fi' >> /home/$MY_USERNAME/showusers
|
||||||
echo 'exit 0' >> /home/$MY_USERNAME/showusers
|
echo 'exit 0' >> /home/$MY_USERNAME/showusers
|
||||||
chmod +x /home/$MY_USERNAME/showusers
|
chmod +x /home/$MY_USERNAME/showusers
|
||||||
|
@ -823,8 +823,8 @@ if [ \$no_of_users -gt 0 ]; then
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop/tox.desktop
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop/tox.desktop
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -f /home/$MY_USERNAME/Users.txt ]; then
|
if [ -f /tmp/Users.txt ]; then
|
||||||
rm /home/$MY_USERNAME/Users.txt
|
rm /tmp/Users.txt
|
||||||
rm /home/$MY_USERNAME/Desktop/Users.desktop
|
rm /home/$MY_USERNAME/Desktop/Users.desktop
|
||||||
if [ -f /home/$MY_USERNAME/Desktop/Users.desktop ]; then
|
if [ -f /home/$MY_USERNAME/Desktop/Users.desktop ]; then
|
||||||
rm /home/$MY_USERNAME/Desktop/Users.desktop
|
rm /home/$MY_USERNAME/Desktop/Users.desktop
|
||||||
|
|
|
@ -44,7 +44,7 @@ IPFS_USERS_FILE=/home/$USER/.ipfs-users
|
||||||
if [ ! -f $IPFS_USERS_FILE ]; then
|
if [ ! -f $IPFS_USERS_FILE ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
USERS_FILE=/home/$USER/Users.txt
|
USERS_FILE=/tmp/Users.txt
|
||||||
if [ ! -f $USERS_FILE ]; then
|
if [ ! -f $USERS_FILE ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue