관리-도구
편집 파일: clpassenger.cpython-37.pyc
B �v6d�h � @ s� d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlmZ d dlm Z d dl mZ d dl Z d dlZd dlZd dlZd dlZd dlmZmZ d d lmZ d d lmZ d dlmZmZ d dlmZ d d lmZmZmZm Z m!Z!m"Z"m#Z# d dl$m%Z%m&Z& d dl'm(Z(m)Z) d dl*m+Z+m,Z, ddl-m.Z. ddlm/Z/m0Z0m1Z1 ddlm2Z2m3Z3m4Z4m5Z5 ddlm6Z6m7Z7 e�8e9�Z:e:�;ej<� e�=e>dd��Z?e:�@e?� dZAdZBdZCdZDdZEdZFdZGdZHd ZId!d"� ZJd#d$� ZKd%d&� ZLd'd(� ZMd)d*� ZNd+d,� ZOd-d.� ZPd/d0� ZQd1d2� ZRd3d4� ZSd5d6� ZTd7d8� ZUd9d:� ZVd;d<� ZWd=d>� ZXd?ddeHdfd@dA�ZYdBdC� ZZd^dDdE�Z[dFdG� Z\eHfdHdI�Z]dJdK� Z^d_dLdM�Z_dNdO� Z`dPdQ� Zad`dRdS�ZbdTdU� ZcdVdW� ZddXdY� ZedZd[� Zfd\d]� ZgdS )a� )�absolute_import)�print_function)�divisionN)�datetime)� iteritems)�configparser)� clcaptain�utils)�userdomains)�*get_file_system_in_which_file_is_stored_on)�get_file_lines�write_file_lines)�mod_makedirs)�QuotaWrapper�NoSuchUserException�InsufficientPrivilegesException�IncorrectLimitFormatException�GeneralException�NoSuchPackageException�QuotaDisabledException)�PyLve� PyLveError)� set_user_perm� set_root_perm)�Dict�Union� )�ClSelectExcept)�file_readlines� file_write�s_partition)�get_abs_rel�mkdir_p� file_read�file_writelines)�get_using_realpath_keys�realpaths_are_equalz /dev/null�wz9# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION BEGINz7# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION ENDz config.ruz�app = proc do |env| message = "It works!\n" version = "Ruby %s\n" % RUBY_VERSION response = [message, version].join("\n") [200, {"Content-Type" => "text/plain"}, [response]] end run app ztmp/restart.txtzpassenger_wsgi.pyaM import os import sys sys.path.insert(0, os.path.dirname(__file__)) def application(environ, start_response): start_response('200 OK', [('Content-Type', 'text/plain')]) message = 'It works!\n' version = 'Python %s\n' % sys.version.split()[0] response = '\n'.join([message, version]) return [response.encode()] zapp.jsaC var http = require('http'); var server = http.createServer(function(req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); var message = 'It works!\n', version = 'NodeJS ' + process.versions.node + '\n', response = [message, version].join('\n'); res.end(response); }); server.listen(); c C s t �| �}t|j|jdd� d S )NF)�exit)�pwd�getpwnamr �pw_uid�pw_gid)�user�userpwd� r/ �E/opt/alt/python37/lib/python3.7/site-packages/clselect/clpassenger.py�drop_root_perm^ s r1 c C s>