Chad
f56b3da23d
* Create explicit file for cron, add two automations from fixes. * Merge the OnlyOffice project into the Nextcloud project. Enhance comments and changelog. Make the container names consistent. * Found the link. :) * Add more variables. * Add a TBD file for mail server. * Create new script which will replace most the existing single purpose management scripts. * Add limit to DNS so that if Internet goes out it does not max system resources. * Prevent OnlyOffice from getting too hungry. * Ensure Reverse Proxy always has at least some resources. * Separate build. Add stats -s and combination option -A. * Make script config file aware. Add comments. * Add more comments. * Fix comments. * Further determine resource allocations. * Also avoid checking for cron's call to the program. * Add clean and log parameters. Some clean up. * Update setups to have DIR first. * Remove files taken over by manage script. * Cleaning comments and output.
27 lines
1.1 KiB
Bash
Executable File
27 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# 2022-09-25 Hyperling
|
|
# Put fixes in a file so they do not need remembered.
|
|
|
|
docker exec -it nc-app apt update -y
|
|
docker exec -it nc-app apt install -y sudo libmagickcore-6.q16-6-extra htop iputils-ping dnsutils vim
|
|
|
|
# 2022-10-30 More additions after moving to Nextcloud version 25.
|
|
docker exec -itu www-data nc-app ./occ db:add-missing-columns
|
|
docker exec -itu www-data nc-app ./occ db:add-missing-indices
|
|
docker exec -itu www-data nc-app ./occ db:add-missing-primary-keys
|
|
docker exec -itu www-data nc-app ./occ db:convert-filecache-bigint
|
|
|
|
# 2023-07-02
|
|
# This maybe used to exist, but make sure that Files app is correct.
|
|
docker exec -itu www-data nc-app ./occ files:scan --all
|
|
# This one takes a while.
|
|
docker exec -itu www-data nc-app ./occ files:scan-app-data
|
|
# Extras? Have used the commands in the past and may help in the future.
|
|
docker exec -itu www-data nc-app ./occ maintenance:theme:update
|
|
docker exec -itu www-data nc-app ./occ maintenance:repair
|
|
# May alsp be useful but do not have much experience with them.
|
|
docker exec -itu www-data nc-app ./occ versions:cleanup
|
|
docker exec -itu www-data nc-app ./occ files:cleanup
|
|
|
|
exit 0
|