-
Notifications
You must be signed in to change notification settings - Fork 0
/
zoiper-installation.sh
24 lines (18 loc) · 770 Bytes
/
zoiper-installation.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# exit when any command fails
set -e
# keep track of the last executed command
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
# echo an error message before exiting
trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT
#zoiper installation
#Download the package form official website
echo "unpacking zoiper"
dpkg -i Zoiper5_5.5.9_x86_64.deb
#As you load up dpkg, keep in mind that dependencies may fail to install. To correct this issue, run the apt install command with the “f” switch.
echo "installing zoiper"
apt install -f
echo -e "\n\n\n\n"
echo "**********************************************************"
echo "Installation done"
echo "**********************************************************"