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
b36448c2
Verified
Commit
b36448c2
authored
6 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Refactor nextcloud apps install + add impersonate
parent
a7b96adf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
installNextcloudApps.sh
+6
-44
6 additions, 44 deletions
installNextcloudApps.sh
with
6 additions
and
44 deletions
installNextcloudApps.sh
+
6
−
44
View file @
b36448c2
...
@@ -16,56 +16,18 @@
...
@@ -16,56 +16,18 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
NEXTCLOUD_INSTALL_DIR
=
"/var/www/nextcloud/"
NEXTCLOUD_INSTALL_DIR
=
"/var/www/nextcloud/"
NEXTCLOUD_APPS_DIR
=
"
${
NEXTCLOUD_INSTALL_DIR
}
apps/
"
APPS
=
"tasks news talk calendar contacts impersonate
"
# Take
2
parameters: app_id
app_url
# Take
1
parameters: app_id
install_app
()
{
install_app
()
{
application
=
$1
application
=
$1
#url=$2
#archive=`echo $url | sed 's@^.*/\(.*\)$@\1@'`
#echo "INSTALL ${application}"
#echo "\tDownload ${application} from ${url}"
#wget "${url}"
#echo "\tDownload ${application} : terminated, code $?"
#echo "\tExtract ${application}"
#tar xzf ${PWD}/${archive}
#echo "\tExtract ${application} : terminated, code $?"
#echo "\tMove extracted file to ${NEXTCLOUD_APPS_DIR}"
#cp -r --verbose ${PWD}/${application} ${NEXTCLOUD_APPS_DIR}
#echo "\tMove extracted file to ${NEXTCLOUD_APPS_DIR} : terminated, code $?"
#chown -R www-data:www-data ${NEXTCLOUD_APPS_DIR}${application}
sudo
-u
www-data php
${
NEXTCLOUD_INSTALL_DIR
}
occ app:install
${
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}*
}
}
# Install tasks
for
app
in
APPS
install_app
"tasks"
"https://github.com/nextcloud/tasks/releases/download/v0.9.4/tasks.tar.gz"
do
install_app
$app
# Install news
done
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_app "direct_menu" "https://github.com/juliushaertl/direct_menu/releases/download/0.9.3/direct_menu.tar.gz"
# Install keeweb
#install_app "keeweb" "https://github.com/jhass/nextcloud-keeweb/releases/download/v0.3.0/keeweb-0.3.0.tar.gz"
# Install calendar
install_app
"calendar"
"https://github.com/nextcloud/calendar/releases/download/v1.4.1/calendar.tar.gz"
# Install contacts
install_app
"contacts"
"https://github.com/nextcloud/contacts/releases/download/v1.5.2/contacts.tar.gz"
# Install Markdown editor
# install_app "files_markdown" "https://github.com/icewind1991/files_markdown/releases/download/v1.0.0/files_markdown.tar.gz"
# Install Markdown editor
# install_app "mail" "https://github.com/nextcloud/mail/releases/download/nightly-20170117/mail.tar.gz"
unset
NEXTCLOUD_INSTALL_DIR
unset
NEXTCLOUD_INSTALL_DIR
unset
NEXTCLOUD_APPS_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