This repository was archived by the owner on Jan 16, 2024. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33#  -------------------------------------------------------------------------- #
4- #  Copyright 2002-2021 , OpenNebula Project, OpenNebula Systems                #
4+ #  Copyright 2002-2022 , OpenNebula Project, OpenNebula Systems                #
55#                                                                             #
66#  Licensed under the Apache License, Version 2.0 (the "License"); you may    #
77#  not use this file except in compliance with the License. You may obtain    #
1818
1919set  -e
2020
21+ #  Save original locale variables and enforce POSIX C locale
22+ # 
23+ #  We provide the user a way to fallback to the correct locale when a command
24+ #  should or must respect system's locale by saving the original values into the
25+ #  '_one_orig*' variables...
26+ 
27+ export  _one_orig_LANG=" ${LANG} " 
28+ export  _one_orig_LC_ALL=" ${LC_ALL} " 
29+ export  _one_orig_LC_COLLATE=" ${LC_COLLATE} " 
30+ export  _one_orig_LC_CTYPE=" ${LC_CTYPE} " 
31+ export  _one_orig_LC_MESSAGES=" ${LC_MESSAGES} " 
32+ export  _one_orig_LC_MONETARY=" ${LC_MONETARY} " 
33+ export  _one_orig_LC_NUMERIC=" ${LC_NUMERIC} " 
34+ export  _one_orig_LC_TIME=" ${LC_TIME} " 
35+ export  LANG=C
36+ export  LC_ALL=C
37+ 
2138TYPE=" ${1:- all} " #  local, online, network, all
2239COMMAND=" ${2} " #  force, reconfigure?
2340
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments