Skip to content

Commit

Permalink
added NextCloudPlus to softy
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed May 4, 2018
1 parent 2039b51 commit b6d2249
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions debian-software
Expand Up @@ -121,7 +121,9 @@ if [[ "$(dpkg --print-architecture)" == "armhf" || "$(dpkg --print-architecture)
VPN_CLIENT_STATUS="$([[ -d /usr/local/vpnclient ]] && echo "on" || echo "off" )"
LIST+=( "VPN client" "Softether VPN client" "$VPN_CLIENT_STATUS" )
fi

# NCP
NCP_STATUS="$( [[ -d /var/www/nextcloud ]] && echo "on" || echo "off" )"
[[ "$family" != "Ubuntu" ]] && LIST+=( "NCP" "Nextcloud personal cloud" "$NCP_STATUS" )
# OMV
OMV_STATUS="$(check_if_installed openmediavault && echo "on" || echo "off" )"
[[ "$family" != "Ubuntu" ]] && LIST+=( "OMV" "OpenMediaVault NAS solution" "$OMV_STATUS" ) && LIST_CONST=3
Expand Down Expand Up @@ -460,8 +462,9 @@ if [[ $? = 0 ]]; then
fi
}
install_ncp (){
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash
}
install_omv (){
#
Expand Down Expand Up @@ -1480,6 +1483,10 @@ while true; do
install_vpn_client
selection=${selection//\"VPN client\"/}
fi
if [[ "$selection" == *NCP* && "$NCP_STATUS" != "on" ]]; then
install_ncp
selection=${selection//NCP/}
fi
if [[ "$selection" == *OMV* && "$OMV_STATUS" != "on" ]]; then
install_omv
Expand Down

2 comments on commit b6d2249

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nachoparker Can you please fix $TMPDIR handling immediately. 'Temp file vulnerabilities' are nothing that needs to be introduced in 2018. Using mktemp -d should already be sufficient.

@nachoparker
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR nextcloud/nextcloudpi#499 applied. Many thanks

Please sign in to comment.