Merge branch 'stretch' of https://github.com/bashrc/freedombone
This commit is contained in:
commit
9d3c597519
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
|
@ -588,6 +588,14 @@ EOF
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
rm $rootdir/usr/bin/install_patchwork
|
rm $rootdir/usr/bin/install_patchwork
|
||||||
|
|
||||||
|
echo '#!/bin/bash' > $rootdir/usr/bin/start_patchwork
|
||||||
|
echo 'cd /etc/patchwork' >> $rootdir/usr/bin/start_patchwork
|
||||||
|
echo 'npm start' >> $rootdir/usr/bin/start_patchwork
|
||||||
|
chmod +x $rootdir/usr/bin/start_patchwork
|
||||||
|
|
||||||
|
# Copy icon to an accesible location
|
||||||
|
cp /root/$PROJECT_NAME/img/icon_patchwork.png /etc/patchwork/icon_patchwork.png
|
||||||
}
|
}
|
||||||
|
|
||||||
initialise_mesh() {
|
initialise_mesh() {
|
||||||
|
@ -851,6 +859,22 @@ 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/Desktop/social.desktop ]; then
|
||||||
|
echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
echo 'Name=Social' >> /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
echo 'Type=Application' >> /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
echo 'Comment=A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB)' >> /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
echo 'Exec=bash /usr/bin/start_patchwork' >> /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
echo "Icon=/etc/patchwork/icon_patchwork.png" >> /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
echo 'StartupNotify=true' >> /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
chmod +x /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
else
|
||||||
|
if grep -q "Offline" /home/$MY_USERNAME/Desktop/social.desktop; then
|
||||||
|
sed -i 's|Name=.*|Name=Social|g' /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f /tmp/.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
|
||||||
|
@ -910,6 +934,11 @@ else
|
||||||
if [ -f /home/$MY_USERNAME/Desktop/tox.desktop ]; then
|
if [ -f /home/$MY_USERNAME/Desktop/tox.desktop ]; then
|
||||||
rm /home/$MY_USERNAME/Desktop/tox.desktop
|
rm /home/$MY_USERNAME/Desktop/tox.desktop
|
||||||
fi
|
fi
|
||||||
|
if [ -f /home/$MY_USERNAME/Desktop/social.desktop ]; then
|
||||||
|
if ! grep -q "Offline" /home/$MY_USERNAME/Desktop/social.desktop; then
|
||||||
|
sed -i 's|Name=.*|Name=Social (Offline)|g' /home/$MY_USERNAME/Desktop/social.desktop
|
||||||
|
fi
|
||||||
|
fi
|
||||||
pkill qtox
|
pkill qtox
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue