Pcloud is a secure cloud storage which has 256-bit AES encryption for all files. They provide up to 10 GB Free! I use it mainly as a music player. Pcloud music player android app is very cool.
If you have installed Pcloud on your ubuntu system and wanted to upgrade to latest version, various steps need to be performed.
Following script have automated many steps –
#!/bin/bash ############################################################################### #Script Name : pcloud-Update.sh #Description : Update latest Pcloud version #Author : Suraj ################################################################################ echo # show system uptime uptime #change folder location echo # Echo on set -x #echo on # Change directory to downloads folder cd /home/username/Downloads # Delete existing pcloud file rm -f pcloud # Download new Pcloud file wget https://www.pcloud.com/how-to-install-pcloud-drive-linux.html?download=electron-64 # Allow executing file as a program chmod +x pcloud # Kill existing pcloud processes kill -s 9 `pgrep -l -u username | grep pcloud | cut -f1 -d" "` # Copy updated version to bin folder sudo cp pcloud /usr/bin/ echo 'SUCCESS' echo 'Start Pcloud from Applications menu...' exit 0
Save the above script as e.g pcloud-Update.sh
This script assumes that pcloud binary is on /Downloads folder and your system is 64 bit. Also make sure to replace ‘username’ in the script with your ubuntu username.
Hope it helps.