Comments (5)
I found some more errors in nextcloud-install-production.sh
-
Home-dir from ncadmin
root@nctest3:~# cd ../ncadmin
root@nctest3:/home/ncadmin# ll
insgesamt 20
drwxr-xr-x 2 ncadmin ncadmin 4096 Okt 11 20:12 ./
drwxr-xr-x 4 root root 4096 Okt 11 20:04 ../
-rw-r--r-- 1 ncadmin ncadmin 220 Okt 11 20:04 .bash_logout
-rw-r--r-- 1 root root 829 Okt 11 20:12 .bash_profile
-rw-r--r-- 1 ncadmin ncadmin 3771 Okt 11 20:04 .bashrc
owner of .bash_profile should be ncadmin:ncadmin
- wrong path in .bash_profile
root@nctest3:/home/ncadmin# cat .bash_profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "4.3.46(1)-release" ]
then
# include .bashrc if it exists
if [ -f "/root/.bashrc" ]
then
. "/root/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "/root/bin" ]
then
PATH="/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/snap/bin"
fi
bash /var/scripts/instruction.sh
bash /var/scripts/history.sh
sudo -i
- ncadmin has no possibility to test "/root/.bashrc"
- private bin is ~/bin or /home/ncadmin/bin not /root/bin
this will happen, because of using the HOME Variable in the script change-ncadmin-profile.sh
--> you do it as root!
better: "~/.bashrc" and "~/bin"
from vm.
Yes, that's a known issue and is happening becuase we fetch the version number from the XML file in the contacts repo. The XML file says that it's 1.5.0.0 but the version is 1.4.0.0. I have pointed this out to the contact devs, and I'm hoping that this will not happen in future versions.
Regarding the .bash_profile, I'll have a look and change it in future versions.
Thanks for your report! Keep 'em coming. :)
from vm.
@eplusk can you please test the PR I've created?
from vm.
@enoch85 Ihave tested the PR, you have to change
$UNIXUSER-PROFILE to $UNIXUSER_PROFILE
then it is ok.
Minus or Underscore is hard to detect
from vm.
@eplusk Thanks! Please give your 👍 in the PR before I merge, thanks!
from vm.
Related Issues (20)
- Could not boot files_inotify: Could not resolve dispatcher! Class "dispatcher" does not exist - new since recent NC update HOT 1
- Unable to update Nextcloud instance su HOT 4
- Restoring the VM on Proxmox VE 8.1.4 HOT 2
- Spamhaus Script Update URLS HOT 1
- Something got wrong during pihole-install.sh HOT 3
- Executable files are not executable (`+x`) after upgrade HOT 13
- Is it possible to bake traefik into your setup to have Nextcloud behind it? HOT 3
- Installation fails - clean ubuntu install HOT 31
- Error installing nextcloud HOT 4
- Adminer css url changed HOT 2
- Netdata installation fails HOT 6
- Adminer not being maintained anymore HOT 10
- Realtek Driver Update HOT 1
- NextCloud VM installation error -Adminer HOT 1
- Fail2ban fails on Ubuntu 24.04 HOT 2
- Installation doesn't work on Ubuntu 22.04 HOT 2
- /var/log/nextcloud/audit.log is not rotating
- Multiple available Nextcloud updates potentially lead to reboot during update process HOT 10
- Upgrade from Nextcloud 28.0.6 to 29.0.1 results in security warning HOT 18
- Cron <root@cloud> which zfs-auto-snapshot > /dev/null || exit 0 ; zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 // HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vm.