Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wtlinux_server_setup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
w4t
wtlinux_server_setup
Commits
b33e07fc
Commit
b33e07fc
authored
Mar 12, 2025
by
w4t
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtserver 0.39
parent
28b60ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
install_owncloud.sh
distros/debian12/install_owncloud.sh
+10
-4
No files found.
distros/debian12/install_owncloud.sh
View file @
b33e07fc
...
...
@@ -69,7 +69,11 @@ InstallNextcloud() {
# Enable APC before Nextcloud tools are run
sed
-i
'1i apc.enabled=1\napc.enable_cli=1'
/etc/php/8.2/mods-available/apcu.ini
# Get current Nextcloud version if config.php exists
# Current Nextcloud Version, #1623
# Checking /usr/local/lib/nextcloud/cloud/version.php shows version of the Nextcloud application, not the DB
# $STORAGE_ROOT/owncloud is kept together even during a backup. It is better to rely on config.php than
# version.php since the restore procedure can leave the system in a state where you have a newer Nextcloud
# application version than the database.
if
[
-f
"
$CLOUD_DIR
/config.php"
]
;
then
CURRENT_NEXTCLOUD_VER
=
$(
php8.2
-r
"include(
\"
$CLOUD_DIR
/config.php
\"
); echo(
\$
CONFIG['version']);"
)
else
...
...
@@ -212,13 +216,15 @@ EOF
#sudo -u www-data "$STORAGE_ROOT"/owncloud/occ config:system:set mysql.utf8mb4 --type boolean --value="true"
#sudo -u www-data "$STORAGE_ROOT"/owncloud/occ maintenance:repair
hide_output
sudo
-u
www-data php8.2
"
$CLOUD_DIR
"
/occ maintenance:install
\
sudo
-u
www-data php8.2
"
$CLOUD_DIR
"
/occ config:system:set config_is_readonly
--value
=
false
--type
=
boolean
sudo
-u
www-data php8.2
"
$CLOUD_DIR
"
/occ maintenance:install
\
--database
"mysql"
\
--database-name
"
$CFG_CLOUDDBNAME
"
\
--database-user
"
$CFG_CLOUDDBUSER
"
\
--database-pass
"
$CFG_CLOUDDBPWD
"
\
--database-host
=
"
$CFG_CLOUDDBHOST
"
\
--database-port
=
"3306"
\
--database-host
"
$CFG_CLOUDDBHOST
"
\
--database-port
"3306"
\
--admin-user
"
$CFG_CLOUDADMINUSER
"
\
--admin-pass
"
$CFG_CLOUDADMINPWD
"
\
--data-dir
"
$STORAGE_ROOT
/nextcloud"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment