##// END OF EJS Templates
fix(init): fixed bug with sed on linux systems
marcink -
Show More
@@ -1979,13 +1979,6 b' sed_replace() {'
1979 1979 echo "ERROR: missing 'ini_path' variable"
1980 1980 fi
1981 1981
1982 if [[ $DEBUG ]]; then
1983 echo
1984 echo "sed --in-place=.replaced -E \"s/$1/$2/\" $ini_path"
1985 echo "pat1: $1"
1986 echo "pat2: $2"
1987 fi
1988
1989 1982 sed_func "$1" "$2" "$ini_path"
1990 1983 }
1991 1984
@@ -2221,8 +2214,15 b' version_compare() ('
2221 2214 # consistent sed function
2222 2215 # example sed_func x y file.txt
2223 2216 sed_func() {
2217 if [[ $DEBUG ]]; then
2218 echo
2219 echo "sed -i .replaced -E \"s/$1/$2/\" $in_file"
2220 echo "pat1: $1"
2221 echo "pat2: $2"
2222 fi
2223
2224 2224 in_file=$3
2225 sed -i .replaced -E "s/$1/$2/" $in_file
2225 sed -i.replaced -E "s/$1/$2/" $in_file
2226 2226 }
2227 2227
2228 2228 # src/lib/validate_stack_exists.sh
@@ -2697,7 +2697,6 b' rcstack_init_command() {'
2697 2697 RC_APP_BASE_URL=$(sed_safe_path $app_base_url)
2698 2698 RC_SQLALCHEMY_DB1_URL=$(sed_safe_path $rc_db1)
2699 2699 RC_CHANNELSTREAM_WS_URL=$(sed_safe_path $rc_channelstream_url)
2700
2701 2700 config_rhodecode_ini
2702 2701
2703 2702 touch $BOOTSTRAP_RUNTIME_ENV
@@ -6835,7 +6834,7 b' rcstack__completions_parse_requirements() {'
6835 6834
6836 6835 # :command.initialize
6837 6836 initialize() {
6838 version="5.2.0"
6837 version="5.2.1"
6839 6838 long_usage=''
6840 6839 set -e
6841 6840
General Comments 0
You need to be logged in to leave comments. Login now