Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NoCloud-Auto-Installer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
NoCloud-Auto-Installer
Commits
7e39b96e
Verified
Commit
7e39b96e
authored
Mar 8, 2019
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Avoid direct download links on nextcloud and install v14
parent
0155bade
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
installNextcloud.env
+1
-1
1 addition, 1 deletion
installNextcloud.env
installNextcloudApps.sh
+22
-19
22 additions, 19 deletions
installNextcloudApps.sh
with
23 additions
and
20 deletions
installNextcloud.env
+
1
−
1
View file @
7e39b96e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# wget configuration
# wget configuration
NEXTCLOUD_DIRECTORY_SOURCES=/root/NextcloudSources/
NEXTCLOUD_DIRECTORY_SOURCES=/root/NextcloudSources/
NEXTCLOUD_WGET_INPUT=nextcloudSource.txt
NEXTCLOUD_WGET_INPUT=nextcloudSource.txt
NEXTCLOUD_VERSION="latest-1
2
"
NEXTCLOUD_VERSION="latest-1
4
"
NEXTCLOUD_PACKAGE="$NEXTCLOUD_VERSION.tar.bz2"
NEXTCLOUD_PACKAGE="$NEXTCLOUD_VERSION.tar.bz2"
# extract configuration
# extract configuration
...
...
This diff is collapsed.
Click to expand it.
installNextcloudApps.sh
+
22
−
19
View file @
7e39b96e
...
@@ -21,22 +21,22 @@ NEXTCLOUD_APPS_DIR="${NEXTCLOUD_INSTALL_DIR}apps/"
...
@@ -21,22 +21,22 @@ NEXTCLOUD_APPS_DIR="${NEXTCLOUD_INSTALL_DIR}apps/"
# Take 2 parameters: app_id app_url
# Take 2 parameters: app_id app_url
install_app
()
{
install_app
()
{
application
=
$1
application
=
$1
url
=
$2
#
url=$2
archive
=
`
echo
$url
|
sed
's@^.*/\(.*\)$@\1@'
`
#
archive=`echo $url | sed 's@^.*/\(.*\)$@\1@'`
echo
"INSTALL
${
application
}
"
#
echo "INSTALL ${application}"
echo
"
\t
Download
${
application
}
from
${
url
}
"
#
echo "\tDownload ${application} from ${url}"
wget
"
${
url
}
"
#
wget "${url}"
echo
"
\t
Download
${
application
}
: terminated, code
$?
"
#
echo "\tDownload ${application} : terminated, code $?"
echo
"
\t
Extract
${
application
}
"
#
echo "\tExtract ${application}"
tar
xzf
${
PWD
}
/
${
archive
}
#
tar xzf ${PWD}/${archive}
echo
"
\t
Extract
${
application
}
: terminated, code
$?
"
#
echo "\tExtract ${application} : terminated, code $?"
echo
"
\t
Move extracted file to
${
NEXTCLOUD_APPS_DIR
}
"
#
echo "\tMove extracted file to ${NEXTCLOUD_APPS_DIR}"
cp
-r
--verbose
${
PWD
}
/
${
application
}
${
NEXTCLOUD_APPS_DIR
}
#
cp -r --verbose ${PWD}/${application} ${NEXTCLOUD_APPS_DIR}
echo
"
\t
Move extracted file to
${
NEXTCLOUD_APPS_DIR
}
: terminated, code
$?
"
#
echo "\tMove extracted file to ${NEXTCLOUD_APPS_DIR} : terminated, code $?"
chown
-R
www-data:www-data
${
NEXTCLOUD_APPS_DIR
}${
application
}
#
chown -R www-data:www-data ${NEXTCLOUD_APPS_DIR}${application}
sudo
-u
www-data php
${
NEXTCLOUD_INSTALL_DIR
}
occ app:
enable
${
application
}
sudo
-u
www-data php
${
NEXTCLOUD_INSTALL_DIR
}
occ app:
install
${
application
}
echo
"
\t
Enable
${
application
}
: terminated, code
$?
"
echo
"
\t
Enable
${
application
}
: terminated, code
$?
"
rm
-r
${
PWD
}
/
${
application
}*
#
rm -r ${PWD}/${application}*
}
}
# Install tasks
# Install tasks
...
@@ -45,11 +45,14 @@ install_app "tasks" "https://github.com/nextcloud/tasks/releases/download/v0.9.4
...
@@ -45,11 +45,14 @@ install_app "tasks" "https://github.com/nextcloud/tasks/releases/download/v0.9.4
# Install news
# Install news
install_app
"news"
"https://github.com/nextcloud/news/releases/download/10.1.0/news.tar.gz"
install_app
"news"
"https://github.com/nextcloud/news/releases/download/10.1.0/news.tar.gz"
# Install talk
install_app
"talk"
# Install direct_menu
# Install direct_menu
install_app
"direct_menu"
"https://github.com/juliushaertl/direct_menu/releases/download/0.9.3/direct_menu.tar.gz"
#
install_app "direct_menu" "https://github.com/juliushaertl/direct_menu/releases/download/0.9.3/direct_menu.tar.gz"
# Install keeweb
# Install keeweb
install_app
"keeweb"
"https://github.com/jhass/nextcloud-keeweb/releases/download/v0.3.0/keeweb-0.3.0.tar.gz"
#
install_app "keeweb" "https://github.com/jhass/nextcloud-keeweb/releases/download/v0.3.0/keeweb-0.3.0.tar.gz"
# Install calendar
# Install calendar
install_app
"calendar"
"https://github.com/nextcloud/calendar/releases/download/v1.4.1/calendar.tar.gz"
install_app
"calendar"
"https://github.com/nextcloud/calendar/releases/download/v1.4.1/calendar.tar.gz"
...
@@ -58,10 +61,10 @@ install_app "calendar" "https://github.com/nextcloud/calendar/releases/download/
...
@@ -58,10 +61,10 @@ install_app "calendar" "https://github.com/nextcloud/calendar/releases/download/
install_app
"contacts"
"https://github.com/nextcloud/contacts/releases/download/v1.5.2/contacts.tar.gz"
install_app
"contacts"
"https://github.com/nextcloud/contacts/releases/download/v1.5.2/contacts.tar.gz"
# Install Markdown editor
# Install Markdown editor
install_app
"files_markdown"
"https://github.com/icewind1991/files_markdown/releases/download/v1.0.0/files_markdown.tar.gz"
#
install_app "files_markdown" "https://github.com/icewind1991/files_markdown/releases/download/v1.0.0/files_markdown.tar.gz"
# Install Markdown editor
# Install Markdown editor
install_app
"mail"
"https://github.com/nextcloud/mail/releases/download/nightly-20170117/mail.tar.gz"
#
install_app "mail" "https://github.com/nextcloud/mail/releases/download/nightly-20170117/mail.tar.gz"
unset
NEXTCLOUD_INSTALL_DIR
unset
NEXTCLOUD_INSTALL_DIR
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment