mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
owncloud: Cleanup install.sh script.
This commit is contained in:
@@ -23,11 +23,15 @@
|
||||
#
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
extract_files
|
||||
mkdir /var/owncloud/data
|
||||
chown -R nobody:nobody /var/owncloud/*
|
||||
|
||||
# Fix permissions.
|
||||
chmod 777 /srv/web/owncloud/apps
|
||||
chmod 777 /srv/web/owncloud/config
|
||||
|
||||
# Create data directory.
|
||||
mkdir -p /var/owncloud/data
|
||||
chown -R nobody:nobody /var/owncloud
|
||||
|
||||
# Import web interface certificates if none exist.
|
||||
if [ ! -e "/etc/httpd/owncloud.crt" ] && [ ! "/etc/httpd/owncloud.key" ]; then
|
||||
cat /etc/httpd/server.crt > /etc/httpd/owncloud.crt
|
||||
@@ -35,3 +39,5 @@ if [ ! -e "/etc/httpd/owncloud.crt" ] && [ ! "/etc/httpd/owncloud.key" ]; then
|
||||
fi
|
||||
|
||||
/etc/init.d/apache reload
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user