Ensure that the latest version of tahoe-lafs is used

This commit is contained in:
Bob Mottram 2016-08-28 11:01:44 +01:00
parent 08c82aeece
commit 98bdf8eb7c
2 changed files with 8 additions and 2 deletions

View File

@ -141,6 +141,7 @@ function remove_tahoelafs {
function_check save_firewall_settings function_check save_firewall_settings
save_firewall_settings save_firewall_settings
pip uninstall tahoe-lafs
apt-get -y remove --purge tahoe-lafs apt-get -y remove --purge tahoe-lafs
sed -i '/install_tahoelafs/d' $COMPLETION_FILE sed -i '/install_tahoelafs/d' $COMPLETION_FILE
@ -207,7 +208,8 @@ function tahoelafs_update_script {
} }
function mesh_install_tahoelafs { function mesh_install_tahoelafs {
chroot "$rootdir" apt-get -y install tahoe-lafs chroot "$rootdir" apt-get -y install python-pip tahoe-lafs
chroot "$rootdir" pip install tahoe-lafs
chroot "$rootdir" su -c 'tahoe create-client' - $MY_USERNAME chroot "$rootdir" su -c 'tahoe create-client' - $MY_USERNAME
if [ ! -d $rootdir/home/$MY_USERNAME/.tahoe ]; then if [ ! -d $rootdir/home/$MY_USERNAME/.tahoe ]; then
exit 63722 exit 63722
@ -229,7 +231,8 @@ function install_tahoelafs {
return return
fi fi
apt-get -y install tahoe-lafs apt-get -y install python-pip tahoe-lafs
pip install tahoe-lafs
configure_firewall_for_tahoelafs configure_firewall_for_tahoelafs
reconfigure_tahoelafs reconfigure_tahoelafs
tahoelafs_update_script /usr/bin/update-tahoelafs tahoelafs_update_script /usr/bin/update-tahoelafs

View File

@ -522,6 +522,9 @@ function show_desktop_icons {
chown -R ${MY_USERNAME}:${MY_USERNAME} /home/$MY_USERNAME/.config/autostart chown -R ${MY_USERNAME}:${MY_USERNAME} /home/$MY_USERNAME/.config/autostart
chown ${MY_USERNAME}:${MY_USERNAME} /home/$MY_USERNAME/*.sh chown ${MY_USERNAME}:${MY_USERNAME} /home/$MY_USERNAME/*.sh
# link to Tahoe-LAFS Magic folder
ln -s /home/${MY_USERNAME}/Desktop/${TAHOELAFS_SHARED_DIR} /home/${MY_USERNAME}/${TAHOELAFS_SHARED_DIR}
# restart caja # restart caja
killall caja killall caja
killall mate-panel killall mate-panel