Move related files into subdirs
This commit is contained in:
parent
2a20f18c78
commit
f543afed65
8 changed files with 99 additions and 0 deletions
21
nextcloud/draft_nextcloud_mod_install.md
Normal file
21
nextcloud/draft_nextcloud_mod_install.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Script for upgrading Nextcloud or insalling missing modules
|
||||
|
||||
perl
|
||||
|
||||
```perl
|
||||
# pseudocode
|
||||
# example mod name php8.0-zip
|
||||
my $php_ver = shift; # format php8.0
|
||||
|
||||
for my $module (@modules)
|
||||
my $full_mod_name = $php_ver . "-" . $module
|
||||
push @install_list ($full_mod_name)
|
||||
my $install_cmd = "apt install " . @install_list # will this put commas in?
|
||||
system $install_cmd
|
||||
system 'apachectl restart'
|
||||
|
||||
```
|
||||
|
||||
```bash
|
||||
apt install php8.0-mbstring php8.0-curl
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue