Giter Club home page Giter Club logo

Comments (5)

eplusk avatar eplusk commented on July 22, 2024

I found some more errors in nextcloud-install-production.sh

  1. 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

  1. 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.

enoch85 avatar enoch85 commented on July 22, 2024

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.

enoch85 avatar enoch85 commented on July 22, 2024

@eplusk can you please test the PR I've created?

from vm.

eplusk avatar eplusk commented on July 22, 2024

@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.

enoch85 avatar enoch85 commented on July 22, 2024

@eplusk Thanks! Please give your 👍 in the PR before I merge, thanks!

from vm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.