Reintroduce nextcloud on the stable 11 branch

This commit is contained in:
Bob Mottram 2017-05-08 11:27:14 +01:00
parent c664d19323
commit cddd8f3c22
1 changed files with 11 additions and 3 deletions

View File

@ -30,16 +30,17 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
VARIANTS='' VARIANTS='full full-vim cloud'
IN_DEFAULT_INSTALL=0 IN_DEFAULT_INSTALL=0
SHOW_ON_ABOUT=0 SHOW_ON_ABOUT=1
NEXTCLOUD_DOMAIN_NAME= NEXTCLOUD_DOMAIN_NAME=
NEXTCLOUD_CODE= NEXTCLOUD_CODE=
NEXTCLOUD_ONION_PORT=8112 NEXTCLOUD_ONION_PORT=8112
NEXTCLOUD_REPO="https://github.com/nextcloud/server" NEXTCLOUD_REPO="https://github.com/nextcloud/server"
NEXTCLOUD_COMMIT='562c45d925a27b21f694a091029d87158364970c' # Stable 11 branch
NEXTCLOUD_COMMIT='4fe02f6e3a812551661a3a7a7ceb4e1f3791cbd3'
NEXTCLOUD_ADMIN_PASSWORD= NEXTCLOUD_ADMIN_PASSWORD=
nextcloud_variables=(ONION_ONLY nextcloud_variables=(ONION_ONLY
@ -455,6 +456,13 @@ function install_nextcloud_main {
function_check create_site_certificate function_check create_site_certificate
create_site_certificate $NEXTCLOUD_DOMAIN_NAME 'yes' create_site_certificate $NEXTCLOUD_DOMAIN_NAME 'yes'
if [[ $ONION_ONLY == "no" ]]; then
if [ ! -f /etc/ssl/certs/${NEXTCLOUD_DOMAIN_NAME}.pem ]; then
echo $'Certificate not generated for nextcloud'
exit 725762
fi
fi
# Ensure that the database gets backed up locally, if remote # Ensure that the database gets backed up locally, if remote
# backups are not being used # backups are not being used
function_check backup_databases_script_header function_check backup_databases_script_header