Compare commits
3 Commits
v0.1.0
...
4e22194124
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e22194124 | |||
| 88a602f039 | |||
| ea2071c84a |
@@ -31,7 +31,7 @@ if ! id nextcloud >/dev/null 2>&1; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Add nextcloud to postgres and valkey groups
|
# Add nextcloud to postgres and valkey groups
|
||||||
usermod --groups postgres,valkey --user nextcloud
|
usermod --groups postgres,valkey --append nextcloud
|
||||||
|
|
||||||
# Download nextcloud latest release
|
# Download nextcloud latest release
|
||||||
wget --output-document %{_tmppath}/nextcloud-latest.tar.bz2 https://download.nextcloud.com/server/releases/latest.tar.bz2
|
wget --output-document %{_tmppath}/nextcloud-latest.tar.bz2 https://download.nextcloud.com/server/releases/latest.tar.bz2
|
||||||
@@ -42,11 +42,11 @@ gpg --verify %{_tmppath}/nextcloud-latest.tar.bz2.asc %{_tmppath}/nextcloud-late
|
|||||||
tar --extract --file=%{_tmppath}/nextcloud-latest.tar.bz2 --directory=%{_sharedstatedir}
|
tar --extract --file=%{_tmppath}/nextcloud-latest.tar.bz2 --directory=%{_sharedstatedir}
|
||||||
|
|
||||||
# Change rights an owner
|
# Change rights an owner
|
||||||
chown nextcloud:nextcloud %{_sharedstatedir}/nextcloud
|
chown --recursive nextcloud:nextcloud %{_sharedstatedir}/nextcloud
|
||||||
chmod 700 %{_sharedstatedir}/nextcloud
|
chmod 700 %{_sharedstatedir}/nextcloud
|
||||||
|
|
||||||
# Create data dir
|
# Create data dir
|
||||||
runuser --user=nextcloud -- mkdir %{_sharedstatedir}/nextcloud/data
|
runuser --user=nextcloud -- mkdir --parents %{_sharedstatedir}/nextcloud/data
|
||||||
|
|
||||||
# Add link to config
|
# Add link to config
|
||||||
runuser --user=nextcloud -- ln --symbolic --force %{_sysconfdir}/nextcloud/config.php %{_sharedstatedir}/nextcloud/config/config.php
|
runuser --user=nextcloud -- ln --symbolic --force %{_sysconfdir}/nextcloud/config.php %{_sharedstatedir}/nextcloud/config/config.php
|
||||||
|
|||||||
Reference in New Issue
Block a user